Code

Ignore shares starting with a ! sign for user. These are group shares.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Dec 2005 11:48:35 +0000 (11:48 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Dec 2005 11:48:35 +0000 (11:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2253 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index c42b2ad25eafb075c7c754b6b20ab8f66cd4d0ef..ca471c64a720324a52d13c1538e0ad733f5312fc 100644 (file)
@@ -999,7 +999,9 @@ class environment extends plugin
     $a_return = array();
     if(is_array($this->gotoShares)){
       foreach($this->gotoShares as $share){
-        $a_return[$share['name']."|".$share['server']]= $share['server']."://".$share['name']." on ".$share['mountPoint'];
+        if (!preg_match('/^!/', $share['server'])){
+          $a_return[$share['name']."|".$share['server']]= $share['server']."://".$share['name']." on ".$share['mountPoint'];
+        }
       }
     }
     return($a_return);