cvat: Worker and supervisor unable to auto annotate with models, 403 error
My actions before raising this issue
- Read/searched the docs
- Searched past issues
- Checked that model is working on docker and nuclio
- Checked that members of the organization with other access levels can auto
- Upgraded CVAT and rechecked everything above
Similar issues seem to occur in #4860 and #4548
Expected Behaviour
Any user should be able to use automatic annotations in an organization, not just Owner and Maintainer
Current Behaviour
Only the owner and maintainers of an organization are able to use auto annotations, worker and supervisors receive the following error
Error: Request failed with status code 403. {"detail":"You do not have permission to perform this action."}.
Possible Solution
Steps to Reproduce (for bugs)
- Set up auto annotations and add a model
- Create an organization
- Add another user as either a worker or supervisor
- Add a new task in the organization with labels that the model can annotate
- Have the other user try to auto annotate the task with the model
Context
I would like for other users in my organization to be allowed to auto annotate without giving them higher levels of privilege.
Your Environment
- Git hash commit (
git log -1): b9abbce411d5d5538de1b9abe3d6b988a5f05805 - Docker version
docker version(e.g. Docker 17.0.05): 20.10.17 - Are you using Docker Swarm or Kubernetes? No
- Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 22.04.1 LTS
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (11 by maintainers)
Commits related to this issue
- Add job access checks for model invocations (#5392) Fixes #4996 - Added job access checks for model launches in the interactive mode — committed to retailnext/cvat by zhiltsov-max 2 years ago
- Add job access checks for model invocations (#5392) Fixes #4996 - Added job access checks for model launches in the interactive mode — committed to retech-us/cvat by zhiltsov-max 2 years ago
@hadi-ghnd
In the admin panel, once you select a user as shown here.
@alex4men Thanks for the temporary fix! It worked for me as well.
Hi, I was able to reproduce the problem. Thinking on the fix.
@yasakova-anastasia , could you please reproduce and fix if it is a problem on our side?
@aliu-dm
Looks like this account is not a superuser. You can create one more superuser using
python manage.py createsuperusercommand in the container.