1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Integer Permissions for Content is ignored if global is unlimited

Discussion in 'Resolved Bug Reports' started by Jeremy, Sep 12, 2013.

  1. Jeremy

    Jeremy XenForo Moderator Staff Member

    Stemming from this:

    I've tried my best to follow the code and the best I can come up with is that XenForo_Model_Permission::_getMergedPermissionPriorityValue() will always favor an unlimited value over a stricter content permission value.

    I'm reporting this, although I'm not entirely convinced it is a bug (although content should override it in my mind).
  2. Mike

    Mike XenForo Developer Staff Member

    Integer values don't have the "priority" concept of regular permissions -- higher values simply have a higher precedence. As such, they can only be increased. A system of "distance" for content-level integer permissions could theoretically be used but that's a whole thing on its own and changes permission priorities.
    Jeremy likes this.

Share This Page