From: cajus Date: Mon, 2 Jun 2008 14:27:16 +0000 (+0000) Subject: Fixed logic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d29ec8c49b7188e54ed70271b43354f71ac1be15;p=gosa.git Fixed logic git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11153 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);