Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

users in role not updated

Open birkb opened this issue 9 years ago • 9 comments

Rocket.Chat Version: 0.50.1 Running Instances: 9 DB Replicaset OpLog: enabled Node Version: 4.7.2

I have created a channel as admin and i want to configure a normal user as moderator for that channel. I go to /admin/permissions/moderator/edit, i choose the room name and i add the username. The UI responds with "User added", but the user does not appear in the list and he also not moderator of that channel.

birkb avatar Feb 03 '17 12:02 birkb

Did you invite the user to the channel? Was the user already a member?

engelgabriel avatar Feb 03 '17 13:02 engelgabriel

No the user was not member of the channel. Even after adding the user to the channel it does not work.

birkb avatar Feb 03 '17 14:02 birkb

I did some investigation here.

The user was in the channel, I added the user as moderator as @birkb described and the user received the moderator badge correctly but the list below was not updated.

The problem is related with subscriptions and the changes we did with client cache. The client receives the subscriptions and users but our current subscription model is not related with rocketchat_subscription via publications/subscriptions

rodrigok avatar Feb 03 '17 15:02 rodrigok

You are right. After switching from compact to normal view mode i see the badges and the user has the moderator badge. This means the user has received the permissions, but is not listed in the permissions UI. Because of that i'm not able to revoke the permissions.

birkb avatar Feb 03 '17 15:02 birkb

@birkb Yeap. But, inside the room, you can click on the user's username to see more details and there exists a button to add/remove that user as moderator.

rodrigok avatar Feb 03 '17 16:02 rodrigok

@rodrigok Thank you for the clarification. This means the problem only affects the permissions UI.

birkb avatar Feb 03 '17 18:02 birkb

Is this related to #5446 ?

Jannibal avatar Apr 10 '17 07:04 Jannibal

Is there a work-around for this problem in the meantime? I have some custom roles assigned to some of my users, which does not require the role anymore, and I find myself unable to do anything about it.

mikt avatar May 05 '17 11:05 mikt

fixed

ggazzo avatar Oct 25 '19 22:10 ggazzo