From 6de304517137e0f4f49885a4e4f930907deb980d Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 20 Jul 2006 06:58:49 +0000 Subject: [PATCH] Updated with skip_write flag git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4247 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_userinfo.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 447b0016c..6c5fa1430 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -158,7 +158,7 @@ class userinfo } - function get_permissions($dn, $object, $attribute) + function get_permissions($dn, $object, $attribute, $skip_write= FALSE) { $acl= array("r" => "", "w" => "", "c" => "", "d" => "", "m" => ""); @@ -220,6 +220,11 @@ class userinfo } } + /* Remove write if needed */ + if ($skip_write){ + $ret= preg_replace('/w/', '', $ret); + } + return ($ret); } -- 2.30.2