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

Admin interface: admin cannot edit scripts, if he is not in "allowed users" for this script #342

Closed
bugy opened this issue Sep 18, 2020 · 9 comments

Comments

@bugy
Copy link
Owner

bugy commented Sep 18, 2020

For each script you can specify "allowed users", meaning that only those users would be able to see and execute the script. This should affect even admins (i.e. you can prohibit some script executions for admins)

However, this setting should affect only main UI and execution. In the admin interface, admins should be able to see ALL the scripts and configure them

@bugy bugy added the bug label Sep 18, 2020
@bugy bugy added the resolved label Sep 26, 2020
@bugy bugy added this to the 1.16.0 milestone Sep 26, 2020
@Alonel
Copy link

Alonel commented Oct 9, 2020

@bugy this "bug" is actually a feature, I'm leveraging it to separate the admin permissions of admins from different teams which shouldn't manage and access each other scripts. it was completely awesome if this feature was effecting also the script audit screen, which will allow admins to see audits items only of Scripts they are in the "allowed users".

Anyway please don't fix this bug which will actually kill a great feature

@bugy
Copy link
Owner Author

bugy commented Oct 10, 2020 via email

@Alonel
Copy link

Alonel commented Oct 10, 2020

You right, but most of the people don't try to hack the system, in most of the cases it's enough they just don't see it visible in their list. if it's possible to actually prevent them to edit even if they changing the URL manually to point the script that will be even more awesome! and if they won't able to see it in the script audit screen that will be a completely killer feature. that way you can have many levels of admin.

@shinebayar-g
Copy link
Collaborator

shinebayar-g commented Oct 15, 2020

Maybe introducing another role like global admin or just script editor permission? :P

@Alonel
Copy link

Alonel commented Oct 15, 2020

Yes another role will also make sense. Maybe script admin? Script admin should include the following:

  1. View and edit permissions for the script.
  2. View script audit

At the end not all admins should have the ability to see and manage all scripts.

What do you think?

@bugy
Copy link
Owner Author

bugy commented Oct 15, 2020 via email

@shinebayar-g
Copy link
Collaborator

I'll add "admin_users" field for each script.
If it's specified, then only admins from the list would be able to see and
edit the configuration

Alonel [email protected] schrieb am Do., 15. Okt. 2020, 06:46:

Yes another role will also make sense. Maybe script admin? Script admin
should include the following:

  1. View and edit permissions for the script.
  2. View script audit

At the end not all admins should have the ability to see and manage all
scripts.

What do you think?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#342 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJXPJK6CMQBZBD7Q5IWS7DSKZ5C3ANCNFSM4RSFRECA
.

Is that really any different than current implementation at first place?

@bugy
Copy link
Owner Author

bugy commented Oct 15, 2020 via email

@bugy
Copy link
Owner Author

bugy commented Nov 1, 2020

@Alonel I made a commit to dev, now you would be able to specify: "admin_users" for a script, i.e. the admins who would be able to modify the script configuration. It's completely independent on "allowed_users"
I understand, that it still breaks backward compatibility, but old behaviour was not intended to work like this 😅

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

No branches or pull requests

3 participants