summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/RoleEdit.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-28 14:38:51 +0200
committerBjörn Geiger2011-03-28 14:38:51 +0200
commit49ebfec064bb6d7a732466fa2071778665beb184 (patch)
tree98895379ee4152b7312bc415cfc6e2f3dd305faf /application/modules/user/forms/RoleEdit.php
parentEinführung einer Rightcategory (diff)
downloadpbs2-49ebfec064bb6d7a732466fa2071778665beb184.tar.gz
pbs2-49ebfec064bb6d7a732466fa2071778665beb184.tar.xz
pbs2-49ebfec064bb6d7a732466fa2071778665beb184.zip
Einführung von Vererbung von Rollen
Diffstat (limited to 'application/modules/user/forms/RoleEdit.php')
-rw-r--r--application/modules/user/forms/RoleEdit.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/application/modules/user/forms/RoleEdit.php b/application/modules/user/forms/RoleEdit.php
index 170a2f9..848dba3 100644
--- a/application/modules/user/forms/RoleEdit.php
+++ b/application/modules/user/forms/RoleEdit.php
@@ -33,6 +33,17 @@ class user_Form_RoleEdit extends Zend_Form
'value' => $_POST['description'],
));
+ if($_POST['inheritance'] == 1) {
+ $this->addElement('checkbox', 'inheritance', array(
+ 'label' => 'Inheritance:',
+ 'checked' => 'checked',
+ ));
+ } else {
+ $this->addElement('checkbox', 'inheritance', array(
+ 'label' => 'Inheritance:',
+ ));
+ }
+
$this->addElement('hidden', 'groupID', array(
'value' => $_POST['groupID'],
));