From 4157f2fc436d1ba0d9db2e1c2195f84afd10a9a7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 30 Nov 2006 12:10:29 +0000 Subject: [PATCH] All snapshots listed can be deleted. Else they weren't shown. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5274 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 72793b3c7..c32eca5f0 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1128,14 +1128,9 @@ class plugin $ui = get_userinfo(); $old_dn = $this->dn; $this->dn = $dn; - - if($this->acl_is_removeable() && $this->acl_is_createable()){ - $ldap = $this->config->get_ldap_link(); - $ldap->cd($this->config->current['BASE']); - $ldap->rmdir_recursive($dn); - }else{ - print_red (_("You are not allowed to delete this snapshot!")); - } + $ldap = $this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->rmdir_recursive($dn); $this->dn = $old_dn; } -- 2.30.2