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

Cannot reproduce User approval queue doesn't take into account User value

Affected version
2.0.0

W1zzard

Well-known member
#1
/approval-queue/ shows only posts, despite the user having the permission set manually via "User permissions"



\XF::visitor()->canApproveRejectUser() returns false

This is on an upgraded 1.5 installation if that makes any difference.

If I change the Administrative user group to have the "Approve / reject users" permission then the users are displayed correctly.
 

Chris D

XenForo developer
Staff member
#3
That sounds like a permissions cache issue, but bear in mind the admin in question would also need to be a moderator.
 

Mike

XenForo developer
Staff member
#4
Given that this appears to be a permission cache issue, then it would appear to be a more general issue. However, we do trigger a permission rebuild when upgrading, so I'm not sure what would cause this. I believe if it were a general bug, we would have seen issues with various new permissions that 2.0 comes with (like the inline mod permission).

Has anyone else been able to reproduce any "missing" permissions after upgrading to 2.0? Ideally, we'd need some sort of reproduction steps.
 

W1zzard

Well-known member
#5
Could this be related to my clustered setup somehow? ie opcache not getting cleared on all nodes?
When I tested this, the opcache was cleared though (right after upgrade and several times afterward).

If you can think of something you'd like me to look at / test I can restore my test db dump once more and upgrade.