Skip to content

Commit 79582d0

Browse files
committed
allowed the workflow access when its graph view
1 parent d5e2359 commit 79582d0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

administrator/components/com_workflow/src/Dispatcher/Dispatcher.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ class Dispatcher extends ComponentDispatcher
3131
*/
3232
protected function checkAccess()
3333
{
34-
$extension = $this->getApplication()->getInput()->getCmd('extension');
34+
$input = $this->getApplication()->getInput();
35+
$view = $input->getCmd('view');
36+
$extension = $input->getCmd('extension');
37+
$parts = explode('.', $extension);
3538

36-
$parts = explode('.', $extension);
39+
// Allow access to the 'graph' view for all users
40+
if ($view === 'graph') {
41+
return;
42+
}
3743

3844
// Check the user has permission to access this component if in the backend
3945
if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.manage.workflow', $parts[0])) {

0 commit comments

Comments
 (0)