From 549c07b457ed13c0a78f56eaec2c5a15dcfd9310 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 16 Dec 2016 19:37:39 +0100 Subject: [PATCH] Controller: remove outdated permission code --- library/Businessprocess/Web/Controller.php | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/library/Businessprocess/Web/Controller.php b/library/Businessprocess/Web/Controller.php index a2a4212..b7ba8b3 100644 --- a/library/Businessprocess/Web/Controller.php +++ b/library/Businessprocess/Web/Controller.php @@ -197,29 +197,8 @@ class Controller extends ModuleController protected function loadBpConfig() { + $name = $this->params->get('config'); $storage = $this->storage(); - if ($this->hasPermission('businessprocess/create')) { - $this->view->processList = array_merge( - $storage->listProcesses(), - array('.new' => $this->translate('Create new configuration')) - ); - } else { - $this->view->processList = $storage->listProcesses(); - } - - // No process found? Go to welcome page - if (empty($this->view->processList)) { - $this->redirectNow('businessprocess'); - } - - $name = $this->params->get( - 'config', - key($this->view->processList) - ); - - if ($name === '.new') { - $this->redirectNow('businessprocess/process/create'); - } if (! $storage->hasProcess($name)) { $this->httpNotFound(