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

Hide module for non-admins #20

Closed
Dominic-Marcelino opened this issue Jan 31, 2023 · 1 comment
Closed

Hide module for non-admins #20

Dominic-Marcelino opened this issue Jan 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Dominic-Marcelino
Copy link
Contributor

Currently everyone can see the module. As this module is only required for devs and a dev will most likely have admin access, I'd suggest to limit the visibility to admin-users.

Fore sure there's probably use-cases where devs aren't admin, but that's probably less often the case than non-devs that see the module.

Not 100% sure about the implementation, but it should be possible to fetch the user before the export and then set the visibility based on the users role

@maltejur maltejur added the enhancement New feature or request label Jan 31, 2023
@maltejur
Copy link
Owner

I think there is an even easier way to do this. There is a more or less undocumented method that checks if the current user should be able to use the extension: 950d8b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants