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

The description and implementation of job enable/disable switching are different #3138

Open
yakanechi opened this issue Jun 19, 2024 · 0 comments

Comments

@yakanechi
Copy link
Contributor

What happened:
The document states that "disable and enable jobs" can only be done by an Admin.
https://docs.screwdriver.cd/user-guide/authentication-authorization

However, in the following code section, it can be changed if you have push(write) permission.

await getUserPermissions({ user, scmUri, level: 'push' });

Which is correct, the documentation or the source code?

What you expected to happen:
The documentation and implementation description match.

How to reproduce it:
Toggle job enable/disabled from the pipeline options by a user with write permission who is not an admin.

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

No branches or pull requests

1 participant