Closed dsj976 closed 1 year ago
Finally followed this tutorial, as it did not require changing from Flask-Login
to Flask-Security
, which would have required significant code change.
The admins are identified automatically by their email address when they register. The email addresses of people who should be assigned the admin role are stored as environment variables - that's how they are automatically identified upon registration.
With commit f54e81f, the upload dataset form now lets admins choose who the annotator of the dataset will be. Regular users, simply referred to as "annotators", can only select themselves as annotators for the datasets they upload.
The admin can now assign multiple annotators to the same dataset
Both annotators and admins should be able to upload datasets. In a local deployment, the annotator might want to add their dataset to the local database. If running on Azure, with the database hosted on Azure, only admins should have access to the database and they should upload the datasets to be annotated by the annotators.
Check out this tutorial.