HybriD3-database / MatD3

Curatable database for experimental and theoretical data on solid materials.
https://hybrid3-database.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
13 stars 4 forks source link

DOI minting button #11

Closed volkerblum closed 4 years ago

volkerblum commented 4 years ago

One more question concerns the "mint DOI" button in the HybriD3 instance of MatD3.

This appears for data sets even if one is not logged in, not just for the creator / owner of the data set. I believe this button should not appear unless one is the creator of the data set or perhaps the administrator of the entire database. Can this be changed, and where?

raullaasner commented 4 years ago

This can be changed. First place is here in the template, so that it wouldn't appear to the general public, and the second place is here, where it should be checked that the user is the owner of the data set. As with the other issue, I can get back to you within the next few days.

As a comment, currently only users that have "staff" status can mint a DOI (but this can be narrowed to just data set owners). Even though the button is visible to everybody, it won't work unless the user has the right privileges.