summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/BootmenuEntries.php
diff options
context:
space:
mode:
authorSimon2011-04-11 15:20:08 +0200
committerSimon2011-04-11 15:20:08 +0200
commite2efbc3d4c4c52a0fd86a7a5d81c9ae05fce27f0 (patch)
tree07c0e8f79e35a005a25efa4cb6edf3af82102ad6 /application/modules/user/forms/BootmenuEntries.php
parentfallbacks in session hinzugefügt (diff)
parentfixes (diff)
downloadpbs2-e2efbc3d4c4c52a0fd86a7a5d81c9ae05fce27f0.tar.gz
pbs2-e2efbc3d4c4c52a0fd86a7a5d81c9ae05fce27f0.tar.xz
pbs2-e2efbc3d4c4c52a0fd86a7a5d81c9ae05fce27f0.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms/BootmenuEntries.php')
-rw-r--r--application/modules/user/forms/BootmenuEntries.php9
1 files changed, 7 insertions, 2 deletions
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.'"'
));
}