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

/runners/all is only for admins #4

Open
htekgulds opened this issue Dec 8, 2023 · 2 comments
Open

/runners/all is only for admins #4

htekgulds opened this issue Dec 8, 2023 · 2 comments

Comments

@htekgulds
Copy link
Owner

We need to either determine if the user has admin role or check both /runners and /runners/all urls (whichever returns a list)

@CodeExplore
Copy link

CodeExplore commented Dec 15, 2023

You can get current user and check is_admin = true

More info: https://docs.gitlab.com/ee/api/users.html#for-administrators-free-self-2

@htekgulds
Copy link
Owner Author

Thanks! I will check it out

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

2 participants