Skip to content

Hide some options for non-admin users #734

Open
@Kenny-JTK

Description

@Kenny-JTK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions