diff options
| author | Simon | 2011-04-20 19:36:22 +0200 |
|---|---|---|
| committer | Simon | 2011-04-20 19:36:22 +0200 |
| commit | 56f8ea5c8b2198b09f2170709601344c1983833c (patch) | |
| tree | be40530549da2a96a33dfd8b082bdf9fd6da5992 /application/modules/user/forms | |
| parent | Error und Warning Unterdrückung entfernt (diff) | |
| download | pbs2-56f8ea5c8b2198b09f2170709601344c1983833c.tar.gz pbs2-56f8ea5c8b2198b09f2170709601344c1983833c.tar.xz pbs2-56f8ea5c8b2198b09f2170709601344c1983833c.zip | |
Rechte bei Filtern angepasst
Diffstat (limited to 'application/modules/user/forms')
| -rw-r--r-- | application/modules/user/forms/Filter.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/application/modules/user/forms/Filter.php b/application/modules/user/forms/Filter.php index 81d9e15..5eabd60 100644 --- a/application/modules/user/forms/Filter.php +++ b/application/modules/user/forms/Filter.php @@ -18,13 +18,18 @@ class user_Form_Filter extends Zend_Form public function init() { $this->setName("Add Filter"); - $this->setMethod('post'); + $this->setMethod('post'); - if(Pbs_Acl::checkRight('fefp') || Pbs_Acl::checkRight('fa')){ - $edit = 'true'; + if(stristr($_SERVER['REQUEST_URI'],'addfilter')){ + $edit = null; } else{ - $edit = null; + if(!Pbs_Acl::checkRight('fe') && Pbs_Acl::checkRight('fefp') ){ + $edit = 'true'; + } + else{ + $edit = null; + } } $this->addElement('text', 'title', array( |
