• 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

Jeremy

Well-known member
#1
Stemming from this:
http://xenforo.com/community/threads/edit-post-issue.59551/

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).
 

Mike

XenForo developer
Staff member
#2
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.