sciencehistory / chf-sufia

sufia-based hydra app
Other
9 stars 4 forks source link

only an admin should be able to delete objects #267

Closed hackartisan closed 7 years ago

jrochkind commented 7 years ago

Does "admin" mean something different than "logged in user" here and in associated issues?

catlu commented 7 years ago

I think so--this came up because we wanted to separate collection management/deletion abilities from "cataloger" logged in users (currently, if you can edit, you can delete, and there is no separation in type of logged in user). This probably also gets into what we want for admin user functionality, a conversation we started but haven't returned to just yet.

jrochkind commented 7 years ago

Thanks @catlu! @catlu and @hackmastera: Do we need more discussion before tackling this issue and others in https://github.com/chemheritage/chf-sufia/labels/gantt%3A%20admin%20%2F%20authorization , should I not start on them yet?

MDiMeo commented 7 years ago

We haven't really talked about this for a year(!), so I think a brief revisit might be best first. I know @hackmastera got close on this, but then we put it down for other priorities.

MDiMeo commented 7 years ago

@jrochkind We previously discussed the authorization strategy on Basecamp, then turned it into GitHub tickets. Here's some background, but this is OLD and should be revisited https://basecamp.com/1929213/projects/8498313/todos/158824002

hackartisan commented 7 years ago

The unfinished work is on the admin-role branch; see https://github.com/chemheritage/chf-sufia/wiki/List-of-WIP-branches

hackartisan commented 7 years ago

setting the permissions in ability work to prevent the behavior, but the buttons still show up and should be removed from the UI: