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

annotator has permission to dump, upload, export annotation the task! How to remove this permission? #2681

Closed
2 tasks done
arasharchor opened this issue Jan 19, 2021 · 2 comments · Fixed by #3788
Closed
2 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@arasharchor
Copy link

My actions before raising this issue

Expected Behaviour

To my understanding annotators may not have permission to dump, upload, export annotations of the task.

Current Behaviour

Annotator can dump, upload or export the task. However, the annotator can not delete the task. How to remove the permission of upload, dump and dataset export from annotators?

@azhavoro azhavoro added the question Further information is requested label Jan 19, 2021
@azhavoro
Copy link
Contributor

@arasharchor Hi, it's expected behavior, why do you think that the annotator role should not have permissions for upload/dump actions? What is your use case?
The roles are defined here https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/authentication/auth.py,
you can change the endpoint permissions according to your preference: https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/engine/views.py#L695 https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/engine/views.py#L528

@arasharchor
Copy link
Author

@azhavoro annotator can mistakenly upload old version annotations overwriting previous annotations which might be newer version. Where should I change in those scripts to remove the permission of upload from annotator? It is OK if annotators can dump annotations.

@nmanovic nmanovic self-assigned this Jul 29, 2021
@nmanovic nmanovic added enhancement New feature or request and removed question Further information is requested labels Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants