summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Config.php
diff options
context:
space:
mode:
authormichael pereira2011-04-11 15:15:00 +0200
committermichael pereira2011-04-11 15:15:00 +0200
commit97383600c745298d595e6ee6258cc0f0e769c65a (patch)
tree919ad049b81c9472ee8abe23a1814e420f7a8281 /application/modules/user/forms/Config.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-97383600c745298d595e6ee6258cc0f0e769c65a.tar.gz
pbs2-97383600c745298d595e6ee6258cc0f0e769c65a.tar.xz
pbs2-97383600c745298d595e6ee6258cc0f0e769c65a.zip
fixes
Diffstat (limited to 'application/modules/user/forms/Config.php')
-rw-r--r--application/modules/user/forms/Config.php9
1 files changed, 6 insertions, 3 deletions
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.'"'
));
}