Code

Backports from 2.7
[gosa.git] / gosa-core / plugins / addons / dyngroup / class_DynamicLdapGroup.inc
index 60f05865fcbc066a6633567172a1594232260e92..bedc5eecc7d4e7b47c096665ac1f656d7e5c198b 100644 (file)
@@ -96,6 +96,19 @@ class DynamicLdapGroup extends plugin
     }
 
 
+    /*!\brief    Checks whether the given attribute is managed by this dyngroup extension or not.
+     */
+    function isAttributeDynamic($attr)
+    {
+        if($this->is_account){
+            foreach($this->labeledURIparsed as $uri){
+                if($uri['attr'] == $attr) return(TRUE);
+            }
+        }
+        return(FALSE);
+    }
+
+
     public function check ()
     {
         $messages = plugin::check();