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?
Access to Workflow features via Roles access rights
Collapse
X
-
Hi partomas ,
Try do this:
1. Create a file /custom/Espo/Custom/Controllers/Workflow.php with the code:
2. Create a file /custom/Espo/Custom/Resources/metadata/app/acl.json 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()
{
}
}
3. Create a file /custom/Espo/Custom/Resources/metadata/scopes/Workflow.json with the code:Code:{ "mandatory": { "scopeLevel": { "Workflow": true, "WorkflowLogRecord": true } } }
4. Create a file /custom/Espo/Custom/Resources/metadata/scopes/WorkflowLogRecord.json with the code:Code:{ "tab": true, "acl": true }
5. Administration -> Clear CacheCode:{ "acl": true }
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 ListComment

Comment