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

Commit b81e3d9

Browse files
committed
Check userExist to create new user for new sharing
Add "w" parameter
1 parent 19d91eb commit b81e3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/action.share/class.ShareCenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
17571757
if (!AuthService::userExists($u) && !isSet($httpVars["user_pass_".$index])) {
17581758
$index++;
17591759
continue;
1760-
} else if (AuthService::userExists($u) && isSet($httpVars["user_pass_".$index])) {
1760+
} else if (AuthService::userExists($u, "w") && isSet($httpVars["user_pass_".$index])) {
17611761
throw new Exception("User $u already exists, please choose another name.");
17621762
}
17631763
if(!AuthService::userExists($u, "r") && !empty($prefix)

0 commit comments

Comments
 (0)