From: Jan Schneider Date: Fri, 28 Jan 2011 14:42:57 +0000 (+0100) Subject: No need to grant all permissions to the share owner. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=43ed1447be017dd9cba3fa5f8bce6e3796175987;p=horde.git No need to grant all permissions to the share owner. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index e843aaaf0..c76ecb8fc 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -1146,7 +1146,6 @@ class Kronolith if (count($group_list)) { $perm = $share->getPermission(); // Add the default perm, not added otherwise - $perm->addUserPermission($GLOBALS['registry']->getAuth(), Horde_Perms::ALL, false); foreach ($group_list as $group_id => $group_name) { $perm->addGroupPermission($group_id, $perm_value, false); } diff --git a/kronolith/scripts/import_squirrelmail_calendar.php b/kronolith/scripts/import_squirrelmail_calendar.php index e16074d8d..2e05f0909 100755 --- a/kronolith/scripts/import_squirrelmail_calendar.php +++ b/kronolith/scripts/import_squirrelmail_calendar.php @@ -70,7 +70,6 @@ while ($row = $handle->fetchRow(DB_FETCHMODE_ASSOC)) { } if (count($permissions)) { $perm = $share->getPermission(); - $perm->addUserPermission($user, Horde_Perms::ALL, false); foreach ($permissions as $key => $value) { $perm->addUserPermission($key, $value, false); }