Stranger things with manage boards and categories permissions

Started by Goha, January 11, 2021, 03:01:50 PM

Previous topic - Next topic

Goha

RC3. I granted permission to manage boards and categories to the Global Moderator role. But Global Moderators can't see and manage boards and categories to which only Global Moderators have access. As Global Moderator I can't even see the empty category I created. I can't realize what is wrong and what I missed.

Screenshots:

  • admin_boards.jpg — boards list for Administrator (empty Global mods category created by the user with Global Moderator role).
  • admin_board_settings.jpg — the board settings for Administrator. Global Moderator option checked by default in Allowed Groups, and I can't uncheck it.
  • admin_boards_settings.jpg — boards settings for Administrator.
  • admin_permissions.jpg — permissions for Global Moderator role. I checked all the boxes there — didn't help.
  • gm_boards.jpg — boards list for the user with Global Moderator role.

shawnb61

Hmmm...  Just tried to reproduce this & not seeing it.

First wild guess - try clearing your cache.
A question worth asking is born in experience & driven by necessity. - Fripp

Goha

Nope. Used everything in Maintenance. :( The same happened with remote forum and local test version. With Regular Member role too.

Goha

Just created an absolutely fresh SMF install. Only two users: Administrator and Regular Member. Turned Regular Member into Global Moderator, and grand permission to manage boards and categories to Global Moderator. The same problem even if I check Guests and Regular Members also (but I see the new board in this case if I turn Global Moderator into Regular Member back). Also, I can see the boards if I check Newbie with Global Moderator (which is checked by default), but in this case, every Newbie can see this board.

shawnb61

Yep, it's a bug.  Filed here:
https://github.com/SimpleMachines/SMF2.1/issues/6450

I was able to reproduce this on my linux environment, but not my windows test environment.  Not sure why there's a difference yet.

A question worth asking is born in experience & driven by necessity. - Fripp


shawnb61

Under the covers, mac is a unix variant, so that makes sense.
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

OK, turns out this bug has already been fixed.

PR here:  https://github.com/SimpleMachines/SMF2.1/pull/6313

The problem is that there is a setting in the settings table that needs to be defined. 

A workaround is to:
- add an entry in the settings table for board_manager_groups - blank is fine
- clear your cache
- go back to Admin | Forum | Boards & categories | Settings, check the box that says that membergroup can manage boards & categories
- press SAVE

This will properly populate the value & you'll be good.
A question worth asking is born in experience & driven by necessity. - Fripp

Goha


Advertisement: