Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permissions loading for oC10 #8488

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/unreleased/change-remove-permission-manager
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Change: Remove permission manager
BREAKING CHANGE for developers: The `PermissionManager` has been removed. Permission management is now being handled by `CASL`. For more details on how it works please see the linked PR down below.

https://github.com/owncloud/web/pull/8431
https://github.com/owncloud/web/pull/8488
2 changes: 1 addition & 1 deletion packages/web-runtime/src/services/auth/userManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class UserManager extends OidcUserManager {
const {
data: { permissions }
} = await httpClient.post('/api/v0/settings/permissions-list', { account_uuid: user.uuid })
return permissions
return permissions || []
} catch (e) {
console.error(e)
return []
Expand Down