Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Typo prevented shared users deletion when not logged as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 17, 2015
1 parent 641b1c6 commit 6d60aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/class.ShareStore.php
Expand Up @@ -288,7 +288,7 @@ protected function testUserCanEditShare($userId){
if($crtUser->getId() == $userId) return true;
if($crtUser->isAdmin()) return true;
$user = ConfService::getConfStorageImpl()->createUserObject($userId);
if($user->hasParent() && $user->getParent() == $userId){
if($user->hasParent() && $user->getParent() == $crtUser->getId()){
return true;
}
$mess = ConfService::getMessages();
Expand Down

0 comments on commit 6d60aa1

Please sign in to comment.