forked from owncloud/ocis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reworks the assignment of the default role at login. The assignment now only happens if settings service is reachable and the current user does not have an assignment yet (we check for the NotFound status). If the settings service returns an error other than 404, the GetUserByClaims() (and with it the authentication) will also error out. Closes: owncloud#3900
- Loading branch information
Showing
2 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Bugfix: Rework default role provisioning | ||
|
||
We fixed a race condition in the default role assignment code that could lead to | ||
users loosing privileges. When authenticating before the settings service was fully | ||
running. | ||
|
||
https://github.com/owncloud/ocis/issues/3900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters