omeka / omeka-s

Omeka S is a web publication system for universities, galleries, libraries, archives, and museums. It consists of a local network of independently curated exhibits sharing a collaboratively built pool of items, media, and their metadata.
GNU General Public License v3.0
401 stars 134 forks source link

Reflect access control rules in views #131

Closed jimsafley closed 9 years ago

jimsafley commented 9 years ago

ACL rules are defined in Omeka\Service\AclFactory (via #72) but many rules need to be reflected in the view scripts. For example, if the current user does not have access to edit an item, the edit icon should not appear. The same goes for the trash icon, the add/edit buttons, etc.

This may be a good opportunity to include userIsAllowed() checks directly in the representations to minimize boilerplate code in the views.

jimsafley commented 9 years ago

This issue is a WIP starting with these commits.