Refactor permissions
Compare changes
Beginning with 2nd June, only the "Single Sign On" option for login to the GitLab web interface will be possible. If you don't have an MPCDF wide second factor so far, please get one at our SelfService (https://selfservice.mpcdf.mpg.de). The GitLab internal second factor will not work.
Refactoring the permission-related fields as discussed in #580 (closed)
Upload.user_id
and EntryMetadata.uploader
are renamed to main_author
coauthors
and entry_coauthors
, respectively.
coauthors
was previously defined on the entry level, but now it is set on the upload level.coauthors
on the upload level, and if possible it would be nice to get rid of the entry_coauthor
field eventually.Calc.shared_with
is renamed and moved to Upload.reviewers
(the name change is to make it more clear that they only have read permissions, now that there will potentially be multiple readers and writers)EntryMetadata.owners
is renamed to viewers
(also to make it clearer that these are the users who can read the data). The field is defined as main_author
+ coauthors
+ reviewers
.EntryMetadata.writers
to denote users who can write to the upload. Defined as main_author
+ coauthors
EntryMetadata.authors
is defined as main_author
+ coauthors
+ entry_coauthors
entry_coauthors
doesn't give you any permissions, neither to read from or to write to the upload. It only means you're listed as an author in the search index. This is the point, because we want the permissions to be determined at the upload level, so you either have read/write access to the whole upload or not (would be messy to have different permissions to different entries within the same upload)