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 some options for non-admin users #734

Open
Kenny-JTK opened this issue Feb 12, 2024 · 1 comment
Open

Hide some options for non-admin users #734

Kenny-JTK opened this issue Feb 12, 2024 · 1 comment
Labels

Comments

@Kenny-JTK
Copy link

Hi, first of all thanks for all the hard work, I recently came across this tool and I'm allready in love with it :)

I do have a question but couldn't see a clear way of doing what i wanted.
I have a script that can be accessed by all users, and some options have a default value set.
some of these options I want to hide from 'normal' users ( and thus use the default value setting)
But an admin should be able to see all the options and be able to change them.

I could copy the script a second time, one time for admins with all options, a second time for normal users with some options set to "Constant". But that would mean we have to maintain 2 versions of the same script.

Is there any way around this?

regards,
Kenny

@bugy
Copy link
Owner

bugy commented Feb 12, 2024

Hi @Kenny-JTK, unfortunately, this is not possible :(
For managing 2 versions of the same script, you could use "included" option, so that you can have the main part of the configuration only once

@bugy bugy added the feature label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants