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

Use roles in authorisation #1167

Merged

Conversation

JR40159
Copy link
Member

@JR40159 JR40159 commented Mar 19, 2024

No description provided.

*/
if (
!isNamed &&
(await missingRequiredRole(user, model, ['owner'])) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be either of 'owner' or 'contributor'. I would expect someone with the permissions to upload a model to also download it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Download a model? This is for the permissions when trying to update or delete an access request?

@JR40159 JR40159 merged commit 12cfa8b into main Mar 26, 2024
14 checks passed
@JR40159 JR40159 deleted the bugfix/BAI-1150-investigate-permissions-for-actions-within-bailo branch March 26, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants