Empty categories after removing user from Global Moderators



  • So I had 4 non-admin users in the Global Moderators group. Then:
    1 - Removed them from the group.
    2 - Created a group named "Moderators".
    3 - Added the 4 non-admin users there.
    4 - Logged with one of these 4 users and noticed I couldn't view any Categories. Tried to access the URL and got this error:
    0_1466753213465_upload-7766c218-6fb7-4a78-a7c4-521e6c036539
    5 - Went to ACP > Manage > Categories and for the "General Discussion" category, I added the new "Moderators" group.
    6 - Logged again with the non-admin account and noticed the "General Discussion" category was showing, but not the rest.
    7 - Got pissed because I didn't want to click in each category and add the new "Moderators" group.
    8 - Deleted Moderators group
    9 - Logged with non-admin and now it can't view any threads.
    10 - Re-added 1 non-admin account to Global Moderators and I could view again the threads.
    11 - Removed the non-admin account and everything went blank again:
    0_1466752985365_upload-f994bf12-9b17-4fdd-9f5e-1c57991eaf24
    Did I mess the privileges? It seems as if the non-admin accounts got removed from the system group registered-users. I logged with another non-admin account which wasn't in the Global Moderators and I could view the categories normally, so I suppose it only affected those 4 users.

    Any ideas on how to fix this?

    Thanks!



  • I think the problem has something to do with old accounts becoming Global Moderators. This is my DB with 261 registered users after querying {_key: /group:registered-users:members/}:

    0_1466757545594_upload-c5686c78-64b0-46da-b562-5496fcd4dd04

    For those 4 Global Moderators:
    3 of them have UIDs > 213
    1 of them has UID = 2

    The one with UID = 2 is the non-admin account that I was using to test in my previous post. I then made another newly created account a Global Moderator, kicked him from the group and the categories appeared just fine.

    I've been upgrading my database since NodeBB 0.7.0 and I'm starting to believe that the issue is due to some conflict with old accounts. In any case, I will do some more testing to confirm my theory. I will ask one of my moderators (UID > 213) to login and see if he can see the categories or not.



  • I asked one of my moderators with UID > 213 and he was seeing the categories just fine, even after removing him from Global Moderators. Only my moderator account with UID = 2 that is experiencing this issue.

    With that said, I suppose it's definitely a DB upgrade conflict.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.