Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2488

Action availability by role example

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Looking at this doc https://docs.magnolia-cms.com/product-docs/6.2/Apps/App-configuration/Action-definition.html#_action_availability

      We need an example of what the configuration should look like for restriction by role. The table below the example doesn't clearly show how the layering should look.

      For example:

      actions: 
        activate: !override &activate
          class: info.magnolia.module.workflow.action.OpenPublicationDialogActionDefinition
          dialogName: workflow:publish
          icon: icon-publish
          catalog: website
          command: activate
          label: Request to Publish
          availability: 
            writePermissionRequired: true
            access: # ------------------------------ the example starts here
              roles: 
                editor: editor
                publisher: publisher
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              akhamis Ashraf Khamis
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: