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

Fixed Moderator actions still shows in tools

RichardKYA

Well-known member
#1
Hello,

If I have a moderator group with these forum permissions...

Screen Shot 2015-06-11 at 18.44.57.jpg

...they can not view the "moderator actions", but the link still displays in the tools drop down...

Screen Shot 2015-06-11 at 18.42.25.jpg

...and clicking it just triggers this error message...

Screen Shot 2015-06-11 at 18.47.08.jpg

....so why does it still display? Is it for some reason that I am overlooking?

Thank you
 

Zynektic

Well-known member
#2
I am probably wrong, but where you add them as a moderator, is the permission ticked there too if it makes any difference?
 

Zynektic

Well-known member
#6
I was just on about the area you add a Moderator, you can tick permissions there and also on the usergroup permissions, whether either of them made a difference if one is checked and the other is not set to allow but if Jeremy was replying to me then I guess not.
 

RichardKYA

Well-known member
#7
Oh OK, I haven't added them as a moderator anywhere, they are a super mod, but I was going to break down the "Manage (move, merge, etc.) thread by anyone:" permissions because I don't like them all being clumped together. Some mods I want to be able to move threads, but others not, same goes for editing threads by anyone, merging threads, etc. Anyway, as I was about to start breaking these down, I noticed that "Moderator Actions" remains in the tools, even though they can't use it, but they still have all the other moderator permissions apart from "Manage (move, merge, etc.) thread by anyone:".
 

Jeremy

Well-known member
#8
I was replying that there isn't a moderator permission to show that link. It depends on $canViewModeratorLogs, but I would need to look up the code for that, of which, I cannot do on my phone.
 

Mike

XenForo developer
Staff member
#9
There's an inconsistency in the permission check here. The link is based on the result of
canViewThreadModeratorLog() which checks for one of a bunch of permissions. The actual action only checks (roughly) one of those.
 

imthebest

Formerly Super120
#11
There's an inconsistency in the permission check here. The link is based on the result of
canViewThreadModeratorLog() which checks for one of a bunch of permissions. The actual action only checks (roughly) one of those.
Sorry I didn't catch you.

Actually what permission controls the ability for moderators to see the Moderator Actions link?
 

RichardKYA

Well-known member
#12
I think what he is saying is that it checks a bunch of permissions and that there isn't actually any "one" permission that allows the link to viewable, but the actual action of viewing the moderators actions themselves, only checks one permission and this is what is causing the inconsistency.