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

Commit

Permalink
Check userExist to create new user for new sharing
Browse files Browse the repository at this point in the history
Add "w" parameter
  • Loading branch information
c12simple committed Apr 17, 2015
1 parent 19d91eb commit b81e3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1757,7 +1757,7 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
if (!AuthService::userExists($u) && !isSet($httpVars["user_pass_".$index])) {
$index++;
continue;
} else if (AuthService::userExists($u) && isSet($httpVars["user_pass_".$index])) {
} else if (AuthService::userExists($u, "w") && isSet($httpVars["user_pass_".$index])) {
throw new Exception("User $u already exists, please choose another name.");
}
if(!AuthService::userExists($u, "r") && !empty($prefix)
Expand Down

0 comments on commit b81e3d9

Please sign in to comment.