Code

Added acls to mimetype
[gosa.git] / plugins / admin / ogroups / class_mailogroup.inc
index 33aaf01207c67ced96cd1d3a6b4eac6a6a800cdf..aa11b64a9b7dacc665b8dde8b4f9b4cb47d233b2 100644 (file)
@@ -26,12 +26,16 @@ class mailogroup extends plugin
 
   function execute()
   {
-       /* Call parent execute */
-       plugin::execute();
+    /* Call parent execute */
+    plugin::execute();
 
     /* Do we need to flip is_account state? */
-    if (isset($_POST['modify_state'])){
-      $this->is_account= !$this->is_account;
+    if(isset($_POST['modify_state'])){
+      if($this->is_account && $this->acl_is_removeable()){
+        $this->is_account= FALSE;
+      }elseif(!$this->is_account && $this->acl_is_createable()){
+        $this->is_account= TRUE;
+      }
     }
 
     /* Show tab dialog headers */