Skip to content

Commit

Permalink
ISSUE-162: add right permission for display mode setting tab
Browse files Browse the repository at this point in the history
@alliomeria this should do it. For the sake of time i will add this with 161 in a single commit since this also adds Markdown (and so many other things) and solves #144

This forces two permissions to be OR -ed. Means either Content: Administer display or Add, edit, and delete custom display modes. Wonder if that is enough? Or should we just go for the first?
  • Loading branch information
DiegoPino committed Jul 12, 2021
1 parent af6e254 commit ff184c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions format_strawberryfield.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ format_strawberryfield.display_settings:
entity_type_id: 'node'
requirements:
_entity_access: 'node.update'
_permission: 'administer display modes + administer node display'
options:
_node_operation_route: TRUE
parameters:
Expand Down

0 comments on commit ff184c4

Please sign in to comment.