Skip to content

Commit

Permalink
Default perms when migrating resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 10, 2015
1 parent 24e5862 commit 2962954
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -59,6 +59,12 @@ public function up()
$share->set('type', Kronolith::SHARE_TYPE_RESOURCE);
$share->set('isgroup', $row['resource_type'] == Kronolith_Resource::TYPE_GROUP);
$share->set('members', $row['resource_members']);

/* Perms to match existing behavior */
$share->addDefaultPermission(Horde_Perms::SHOW);
$share->addDefaultPermission(Horde_Perms::READ);
$share->addDefaultPermission(Horde_Perms::EDIT);

$share->save();
}
}
Expand Down

0 comments on commit 2962954

Please sign in to comment.