IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
882 stars 493 forks source link

Permissions: List roles in order of power of permissions #3040

Closed bencomp closed 7 years ago

bencomp commented 8 years ago

When assigning roles to users or groups, the list of available roles is currently ordered alphabetically:

screen shot 2016-03-29 at 12 53 18

Our users indicated that it would make more sense to order them by the power that their permissions have, i.e. Admin first (or last), then Curator, then Dataverse + Dataset Creator, ..., File Downloader last (or first). (I find it hard to come up with the best order, as the roles have different permissions, not just more or fewer.)

Newly defined roles (see also #2454) should blend in based on their permissions.

bencomp commented 8 years ago

It appears from DataverseRole that roles can currently only be sorted by name (and subsorted by the ID of the dataverse in which they were defined).

pdurbin commented 8 years ago

I guess you could try sorting by permissionbits since more bits means more power: http://phoenix.dataverse.org/schemaspy/latest/tables/dataverserole.html

schemaspy_-_table_dvndb public dataverserole_-_2016-05-03_08 24 11

pdurbin commented 7 years ago

Closing. I left a reminder at https://github.com/IQSS/dataverse/issues/2653#issuecomment-311848682