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


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


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.