Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] /api/v1/users.info rooms info fails if not admin or [view-other-user-channels] set #13894

Closed
fasttrackhost opened this issue Mar 25, 2019 · 0 comments · Fixed by #14242
Closed

Comments

@fasttrackhost
Copy link

Description:

Related to #12726 but different.

/api/v1/users.info with fields={"userRooms": 1} will only retrieve rooms if authenticating user user has role Admin or Permission "[view-other-user-channels]" enabled. That's kind of strange, considering user can see his active rooms in chat window, why REST-API is not giving same user rooms info?? Is [view-other-user-channels] ignored in chat window, but it is checked if using REST-API??

Please add a confirmation message when ticking to change a permission. There is no "Save" button, and when you click on any checkbox you don't know if change was made.

Expected behavior:

As in RocketChat window a user can see the rooms he is active in (public, private and direct), REST-API should do the same.

Actual behavior:

In RocketChat window a user can see the rooms he is active in (public, private and direct), but not in REST-API. You must Tick to Enable the Permission set [view-other-user-channels]

Server Setup Information:

Version of Rocket.Chat Server: 0.74.2
Operating System: Linux x64, Ubuntu 18.04
Deployment Method: snap
Number of Running Instances: 1
NodeJS Version: v8.11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants