Replies: 4 comments 5 replies
-
@haimat , if the user has no privilege or worker privilege, it will not be able to create a project. Please see here https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/iam/rules/projects.csv. By default all new users have |
Beta Was this translation helpful? Give feedback.
-
@haimat , the short answer is you need correctly update rego rules. They define how to do that completely (as you saw). Split some allow rules on several ones. Let's say you have: allow {
{ utils.VIEW, utils.VIEW_ANNOTATIONS, utils.EXPORT_DATASET,
utils.VIEW_DATA, utils.EXPORT_ANNOTATIONS, utils.EXPORT_BACKUP }[input.scope]
utils.is_sandbox
is_task_staff
} You can do the following trick below. Even it is not complete, it should give you the right idea. is_task_admin {
is_project_staff
}
is_task_admin {
is_task_owner
}
allow {
{ utils.EXPORT_DATASET, utils.EXPORT_ANNOTATIONS, utils.EXPORT_BACKUP }[input.scope]
utils.is_sandbox
is_task_admin
}
allow {
{ utils.VIEW, utils.VIEW_ANNOTATIONS, utils.VIEW_DATA }[input.scope]
utils.is_sandbox
is_task_staff
}
|
Beta Was this translation helpful? Give feedback.
-
A useful link: https://www.openpolicyagent.org/docs/latest/policy-language/ |
Beta Was this translation helpful? Give feedback.
-
@haimat , I will recommend to create an issue and see if it is a common issue and community is going to vote for the issue. I have no problems to exclude task:assignee from the ability to export data from a CVAT instance. Just need to understand that it is a common use case. |
Beta Was this translation helpful? Give feedback.
-
Hi all - with the new permissions system in 2.0 (thanks a lot for that btw.) it seems that every user, even regular non-admins, are able to create new projects and organizations. Is there a way to create a simple user that is solely allowed to annotate jobs within organizations they have been assigned to, without allowing them to create any new projects or organizations?
Beta Was this translation helpful? Give feedback.
All reactions