From 08cfaa8788313f9a3c2a23c02c9cb942c0f4b79a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 15 Jul 2008 13:10:25 +0000 Subject: [PATCH] Updated ACL handling for groups. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11664 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/groups/class_groupGeneric.inc | 23 ++++++++++--------- gosa-core/plugins/admin/groups/generic.tpl | 4 ++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc index 10c23d1df..79de277e4 100644 --- a/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -238,7 +238,7 @@ class group extends plugin } /* Delete user from group */ - if (isset($_POST['del_users']) && isset($_POST['members'])){ + if (isset($_POST['del_users']) && isset($_POST['members']) && preg_match("/w/",$this->getacl("memberUid"))){ foreach ($_POST['members'] as $value){ unset ($this->members["$value"]); $this->removeUser($value); @@ -247,7 +247,7 @@ class group extends plugin } /* Add objects? */ - if (isset($_POST["edit_membership"])){ + if (isset($_POST["edit_membership"]) && preg_match("/w/",$this->getacl("memberUid"))){ $this->group_dialog= TRUE; $this->dialog= TRUE; } @@ -815,14 +815,14 @@ class group extends plugin } /* Save fon attribute */ - if ($this->acl_is_writeable("fon_group")){ + if ($this->acl_is_writeable("fonGroup")){ if (isset ($_POST['fon_group'])){ $this->fon_group= TRUE; } else { $this->fon_group= FALSE; } } - if ($this->acl_is_writeable("nagios_group")){ + if ($this->acl_is_writeable("nagiosGroup")){ if (isset ($_POST['nagios_group'])){ $this->nagios_group= TRUE; } else { @@ -1230,17 +1230,18 @@ class group extends plugin "plProvidedAcls" => array( "cn" => _("Name"), - "base" => _("Base"), "description" => _("Description"), - - "fonGroup" => _("Phone pickup group"), - "nagiosGroup" => _("Nagios group"), + "base" => _("Base"), "gidNumber" => _("GID"), - "memberUid" => _("Group member"), + "sambaGroupType" => _("Samba group type"), "sambaDomainName" => _("Samba domain name"), - "sambaSID" => _("Samba SID")) + "trustModel" => _("System trust"), + "fonGroup" => _("Phone pickup group"), + "nagiosGroup" => _("Nagios group"), + + "memberUid" => _("Group member")) )); } @@ -1288,7 +1289,7 @@ class group extends plugin } /* Save fon attribute */ - if ($this->acl_is_writeable("fon_group")){ + if ($this->acl_is_writeable("fonGroup")){ if (isset ($_POST['fon_group'])){ $this->fon_group= TRUE; } else { diff --git a/gosa-core/plugins/admin/groups/generic.tpl b/gosa-core/plugins/admin/groups/generic.tpl index aa6b61a2f..726d1e12d 100644 --- a/gosa-core/plugins/admin/groups/generic.tpl +++ b/gosa-core/plugins/admin/groups/generic.tpl @@ -225,9 +225,13 @@ {/if} {/render}
+{render acl=$memberUidACL} +{/render}   +{render acl=$memberUidACL} +{/render} -- 2.30.2