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

eligible-users api - restrict to global admins and project admins #433

Open
6 tasks
Tracked by #434
ethanstrominger opened this issue Nov 10, 2024 · 0 comments
Open
6 tasks
Tracked by #434

Comments

@ethanstrominger
Copy link
Member

Dependies

Overview

Ensure only valid users can use the API

API specification

/eligibile-users/

Action Items

  • permissions.py (& views.py): UserEligiblePermission
    • Validate project id.
    • views.py: Add as a permission to UserEligibleView
    • Check if user is a global admin or project admin. If not, return error.
    • If not a global admin, check that project admin is assigned to the specified project. If not, return errror.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🧊Ice Box
Development

No branches or pull requests

1 participant