From d29ec8c49b7188e54ed70271b43354f71ac1be15 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 2 Jun 2008 14:27:16 +0000 Subject: [PATCH] Fixed logic git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11153 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 8ed7173a5..f983a9d24 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -1979,21 +1979,23 @@ class plugin { $str= ""; $ui = get_userinfo(); - if($this->snapshotEnabled() && $ui->allow_snapshot_restore($base,$category)){ + if($this->snapshotEnabled()){ + if ($ui->allow_snapshot_restore($base,$category)){ - if(count($this->Available_SnapsShots($base))){ - $str.= " "; - } else { - $str = " "; + if(count($this->Available_SnapsShots($base))){ + $str.= " "; + } else { + $str = " "; + } + } + if($ui->allow_snapshot_create($base,$category)){ + $str.= " "; + }else{ + $str = "  "; } - } - if($this->snapshotEnabled() && $ui->allow_snapshot_create($base,$category)){ - $str.= " "; - }else{ - $str = "  "; } return($str); -- 2.30.2