Code

Fixed acl check for release remove
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Feb 2006 09:27:43 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Feb 2006 09:27:43 +0000 (09:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2632 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 1dec0757b36f43527115d9c138e026d446de3f94..6c521fa0a19f9ab158b0ac90e30813cc3588eb0d 100644 (file)
@@ -370,12 +370,12 @@ class faiManagement extends plugin
       /* Load permissions for selected 'dn' and check if
          we're allowed to remove this 'dn' */
       $acl= get_permissions ($faifilter['base'], $this->ui->subtreeACL);
-      $this->acl= get_module_permission($acl, "fai", $base);
+      $this->acl= get_module_permission($acl, "FAIclass", $base);
       if (chkacl($this->acl, "delete") == ""){
         $smarty->assign("info", sprintf(_("You're about to delete a fai branch / freeze  '%s'."), $faifilter['branch']));
         return($smarty->fetch(get_template_path('remove_branch.tpl',TRUE)));
       } else {
-        print_red (_("You are not allowed to delete this user!"));
+        print_red (_("You are not allowed to delete this release!"));
       }
     }