diff options
| author | Simon | 2011-04-07 14:45:58 +0200 |
|---|---|---|
| committer | Simon | 2011-04-07 14:45:58 +0200 |
| commit | e0da08150df720b993e9d38e14d7cfb0ccc87150 (patch) | |
| tree | 164c0079c14da86d21054d52ac95233c158ea721 /application/modules/user/controllers/PrebootController.php | |
| parent | serialnumber von bootiso an usb stick angepasst (diff) | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-e0da08150df720b993e9d38e14d7cfb0ccc87150.tar.gz pbs2-e0da08150df720b993e9d38e14d7cfb0ccc87150.tar.xz pbs2-e0da08150df720b993e9d38e14d7cfb0ccc87150.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/controllers/PrebootController.php')
| -rw-r--r-- | application/modules/user/controllers/PrebootController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index b630267..e74dd3f 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -250,7 +250,7 @@ class User_PrebootController extends Zend_Controller_Action public function editprebootAction() { //ACL Is he allowed to edit Preboots? - if(!Pbs_Acl::checkRight('pre')) + if(!Pbs_Acl::checkRight('pre') && !Pbs_Acl::checkRight('prem')) $this->_redirect('/user/preboot/index/page/'.$this->page.'/modifyresult/forbidden'); $prebootID = $this->_request->getParam('prebootID'); @@ -291,7 +291,7 @@ class User_PrebootController extends Zend_Controller_Action if($preboot->getPath_preboot() != $prebootold->getPath_preboot()){ //ACL Is he allowed to edit the Preboot Path? - if(Pbs_Acl::checkRight('prem')) + if(!Pbs_Acl::checkRight('pre')) $this->_redirect('/user/preboot/index/page/'.$this->page.'/modifyresult/forbidden'); exec("wget -O '".$path_preboot."preboot.zip' ".escapeshellcmd($preboot->getPath_preboot()) ." 2>&1 | grep 'saved'" , $status); |
