diff options
| author | michael pereira | 2011-04-11 15:15:00 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-11 15:15:00 +0200 |
| commit | 97383600c745298d595e6ee6258cc0f0e769c65a (patch) | |
| tree | 919ad049b81c9472ee8abe23a1814e420f7a8281 /application/modules/user/forms | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-97383600c745298d595e6ee6258cc0f0e769c65a.tar.gz pbs2-97383600c745298d595e6ee6258cc0f0e769c65a.tar.xz pbs2-97383600c745298d595e6ee6258cc0f0e769c65a.zip | |
fixes
Diffstat (limited to 'application/modules/user/forms')
| -rw-r--r-- | application/modules/user/forms/Bootiso.php | 2 | ||||
| -rw-r--r-- | application/modules/user/forms/Bootmenu.php | 10 | ||||
| -rw-r--r-- | application/modules/user/forms/BootmenuEntries.php | 9 | ||||
| -rw-r--r-- | application/modules/user/forms/Bootos.php | 2 | ||||
| -rw-r--r-- | application/modules/user/forms/Config.php | 9 | ||||
| -rw-r--r-- | application/modules/user/forms/Preboot.php | 2 |
6 files changed, 23 insertions, 11 deletions
diff --git a/application/modules/user/forms/Bootiso.php b/application/modules/user/forms/Bootiso.php index 7a3547e..3f5431c 100644 --- a/application/modules/user/forms/Bootiso.php +++ b/application/modules/user/forms/Bootiso.php @@ -26,7 +26,7 @@ class user_Form_Bootiso extends Zend_Form $this->setName($this->action); $this->setMethod('post'); - if (!Pbs_Acl::checkRight('be')) + if (!Pbs_Acl::checkRight('be') && $this->action == 'editbootiso') $meta = true; else $meta = null; diff --git a/application/modules/user/forms/Bootmenu.php b/application/modules/user/forms/Bootmenu.php index 8389fa8..73791fd 100644 --- a/application/modules/user/forms/Bootmenu.php +++ b/application/modules/user/forms/Bootmenu.php @@ -4,6 +4,7 @@ class user_Form_Bootmenu extends Zend_Form { private $action; private $page; + private $type; public function setAction($action){ $this->action = $action; @@ -17,13 +18,16 @@ class user_Form_Bootmenu extends Zend_Form public function setPage($page){ $this->page = $page; } - + public function setType($type){ + $this->type = $type; + } + public function init() { $this->setName($this->action); $this->setMethod('post'); - if (!Pbs_Acl::checkRight('booee')) + if (!Pbs_Acl::checkRight('booee') && $this->action == 'editbootmenu') $meta = true; else $meta = null; @@ -49,7 +53,7 @@ class user_Form_Bootmenu extends Zend_Form )); $this->addElement('button', 'Cancel', array( - 'onclick' => 'self.location="/user/bootmenu/index/page/'.$this->page.'"' + 'onclick' => 'self.location="/user/bootmenu/index/type/'.$this->type.'/page/'.$this->page.'"' )); } diff --git a/application/modules/user/forms/BootmenuEntries.php b/application/modules/user/forms/BootmenuEntries.php index 58a2820..3168bee 100644 --- a/application/modules/user/forms/BootmenuEntries.php +++ b/application/modules/user/forms/BootmenuEntries.php @@ -8,6 +8,7 @@ class user_Form_BootmenuEntries extends Zend_Form private $maxorder; private $action; private $page; + private $type; public function setAction($action){ $this->action = $action; @@ -30,6 +31,10 @@ class user_Form_BootmenuEntries extends Zend_Form $this->configlist = $configlist; } + public function setType($type){ + $this->type = $type; + } + public function setPage($page){ $this->page = $page; } @@ -48,7 +53,7 @@ class user_Form_BootmenuEntries extends Zend_Form $this->setName($this->action); $this->setMethod('post'); - if (!Pbs_Acl::checkRight('booee')) + if (!Pbs_Acl::checkRight('booee') && $this->action == 'editbootmenuentry') $meta = true; else $meta = null; @@ -152,7 +157,7 @@ class user_Form_BootmenuEntries extends Zend_Form )); $this->addElement('button', 'Cancel', array( - 'onclick' => 'self.location="/user/bootmenu/index/page/'.$this->page.'"' + 'onclick' => 'self.location="/user/bootmenu/index/type/'.$this->type.'/page/'.$this->page.'"' )); } diff --git a/application/modules/user/forms/Bootos.php b/application/modules/user/forms/Bootos.php index 6edc7eb..5420a83 100644 --- a/application/modules/user/forms/Bootos.php +++ b/application/modules/user/forms/Bootos.php @@ -28,7 +28,7 @@ class user_Form_Bootos extends Zend_Form $this->setName("BootOsCreate"); $this->setMethod('post'); - if (!Pbs_Acl::checkRight('boe')) + if (!Pbs_Acl::checkRight('boe') && $this->action == 'editbootos') $meta = true; else $meta = null; diff --git a/application/modules/user/forms/Config.php b/application/modules/user/forms/Config.php index 2ee221d..a9f4c62 100644 --- a/application/modules/user/forms/Config.php +++ b/application/modules/user/forms/Config.php @@ -5,6 +5,7 @@ class user_Form_Config extends Zend_Form private $action; private $page; + private $type; public function setAction($action){ $this->action = $action; @@ -12,13 +13,15 @@ class user_Form_Config extends Zend_Form public function setPage($p){ $this->page = $p; } - + public function setType($type){ + $this->type = $type; + } public function init() { $this->setName($this->action); $this->setMethod('post'); - if (!Pbs_Acl::checkRight('ce')) + if (!Pbs_Acl::checkRight('ce') && $this->action == 'editconfig') $meta = true; else $meta = null; @@ -57,7 +60,7 @@ class user_Form_Config extends Zend_Form )); $this->addElement('button', 'Cancel', array( - 'onclick' => 'self.location="/user/config/index/page/'.$this->page.'"' + 'onclick' => 'self.location="/user/config/index/type/'.$this->type.'/page/'.$this->page.'"' )); } diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index 9d2f3aa..404a559 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -18,7 +18,7 @@ class user_Form_Preboot extends Zend_Form $this->setName($this->action); $this->setMethod('post'); - if ((!Pbs_Acl::checkRight('pre') && $this->action == 'editpreboot')) + if (!Pbs_Acl::checkRight('pre') && $this->action == 'editpreboot') $meta = true; else $meta = null; |
