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

User context menu doesn't contain "Administration" anymore, nor does the "three-dots" menu #9865

Closed
TwizzyDizzy opened this issue Feb 23, 2018 · 7 comments · Fixed by #10171

Comments

@TwizzyDizzy
Copy link

TwizzyDizzy commented Feb 23, 2018

Description:

I have given the [manage-emoji] permission to normal users. This lead to them having an "Administration" menu with only one option: to add custom emojis.

With the new discovery menu, this option is not contained in the Status menu and it is not available as extended options in the menu ("three-dots menu" - which isn't even present, only the add channel [+]).

So currently it is not possible to access the custom emoji interface from the normal menu despite having the respective privileges.

Cheers
Thomas

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.0
  • Operating System: Oracle Linux 7
  • Deployment Method(snap/docker/tar/etc): tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -
  • Node Version: 8.9.4
  • mongoDB Version: 2.6.12

Steps to Reproduce:

  1. Please see image below

Expected behavior:

  • Give a possibility to access the administration menu, if you have the [manage-emoji] permission.

Actual behavior:

screen

Relevant logs:

@TwizzyDizzy
Copy link
Author

This is still present in 0.62.0

@c0dzilla
Copy link
Contributor

@karlprieb may I send a pr for this? :)

@TwizzyDizzy
Copy link
Author

Hey, @karlprieb, could you have a look at this PR? :)

Cheers
Thomas

@karlprieb
Copy link
Contributor

karlprieb commented Apr 4, 2018

@TwizzyDizzy this PR was approved already, just waiting to be merged.

@a-bern
Copy link

a-bern commented Apr 5, 2018

Hi @karlprieb and @TwizzyDizzy,
this looks broken by design. Imho if a user has any admin permission he should be able to see the admin menu as long as the user is only able to see/modify the settings where he has permissions too. For example with "manage-emoji" he should not see the integrations.

Why is the admin menu only visible for specific permissions?

Take a look at issue #10226 - and I guess there will be more..
Thanks,
Alex

@TwizzyDizzy
Copy link
Author

I have to say that I agree with @a-bern. A very legit remark. Just had a look at the PR. This seems to be rather prone to future admin permissions walking into the same issue just by simply being forgotten there.

I tend to think, that it would be more clever (disclaimer: I have NO nodejs or Rocket.Chat coding experience, yet other languages) to make this ("this is an admin-setting and therefore needs to trigger the menu in the UI") a property of a permission and then only set this flag when you define that setting once?

Then on checking whether this should be shown or not, just walk through the list of permissions the user has and set userHasOneAdminPermission to 1 if one setting has this property. Then only show the admin-menu, when userHasOneAdminPermission == 1.

Hope this is understandable...

But indeed I have the feeling, that if you do it the way you're currently doing it, this kind of issue is gonna appear again and again.

Cheers
Thomas

@theorenck theorenck modified the milestones: 0.63.0, 0.64.0 Apr 9, 2018
@a-bern
Copy link

a-bern commented Apr 17, 2018

Hi @rodrigok
Could you please explain why you closed this issue? The main problem is still not fixed.
Users with "manage-integrations" for example permissions are still not able to see the admin menu.

Should we open a separate issue for each permission that requires the admin menu?

Thanks

Alex

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.

5 participants