clarity-h2020 / csis-helpers-module

CSIS Helpers Drupal Module
GNU General Public License v3.0
1 stars 0 forks source link

Hide edit buttons if user permissions are not sufficient #16

Closed patrickkaleta closed 4 years ago

patrickkaleta commented 4 years ago

Group members who are not owners, cannot edit the Study group itself, but only work with the group contents (the GL-steps, report images, ...).

So, in the Study step all edit buttons created with the Display Suite need to be hidden via the CSIS helpers module. For that, all Display suite buttons in question will get an extra class "token-field-check-permissions", for which the helpers module will look for and then based on the write_permissions attribute in the $studyObject, the buttons will be either hidden or not.

patrickkaleta commented 4 years ago

Done! (feature-016)