Announcement

Collapse
No announcement yet.

Access to Workflow features via Roles access rights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access to Workflow features via Roles access rights

    Hello, I would like to give access to Workflow feature via Roles access rights, not by giving general Admin user. Does anyone know how to do so?

  • #2
    You may search the forum, other people tried to give users the permission to edit users. I believe this is a very similar scenario.

    Comment


    • #3
      Hi partomas ,
      Try do this:
      1. Create a file /custom/Espo/Custom/Controllers/Workflow.php with the code:
      PHP Code:
      <?php

      namespace Espo\Custom\Controllers;

      use 
      \Espo\Core\Exceptions\Forbidden;

      class 
      Workflow extends \Espo\Modules\Advanced\Controllers\Workflow
      {
          protected function 
      checkControllerAccess()
          {

          }
      }
      2. Create a file /custom/Espo/Custom/Resources/metadata/app/acl.json with the code:
      Code:
      {
          "mandatory": {
              "scopeLevel": {
                  "Workflow": true,
                  "WorkflowLogRecord": true
              }
          }
      }
      3. Create a file /custom/Espo/Custom/Resources/metadata/scopes/Workflow.json with the code:
      Code:
      {
          "tab": true,
          "acl": true
      }
      4. Create a file /custom/Espo/Custom/Resources/metadata/scopes/WorkflowLogRecord.json with the code:
      Code:
      {
          "acl": true
      }
      5. Administration -> Clear Cache
      6. Refresh a web page
      7. Add permissions to a user role for the 'Workflows'and 'Workflows Log'
      8. Add Workflow tab in the Administration -> User Interface -> Tab List

      Comment

      Working...
      X