Skip to content

Commit

Permalink
api_scope fix for provisioning_api:getCurrentUser (#91)
Browse files Browse the repository at this point in the history
Users#getCurrentUser has `/cloud/user` url

Apps want to know information about current user =)

Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 authored Oct 13, 2023
1 parent 06c4ddb commit b86bb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ExAppApiScopeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function registerInitScopes(): bool {
['api_route' => '/dav/', 'scope_group' => 10, 'name' => 'FILES', 'user_check' => 1],
['api_route' => '/apps/files/ajax/', 'scope_group' => 10, 'name' => 'FILES', 'user_check' => 1],
['api_route' => '/apps/files_sharing/api/', 'scope_group' => 11, 'name' => 'FILES_SHARING', 'user_check' => 1],
['api_route' => '/cloud/users', 'scope_group' => 30, 'name' => 'USER_INFO', 'user_check' => 1],
['api_route' => '/cloud/user', 'scope_group' => 30, 'name' => 'USER_INFO', 'user_check' => 1],
['api_route' => '/cloud/groups', 'scope_group' => 30, 'name' => 'USER_INFO', 'user_check' => 1],
['api_route' => '/apps/user_status/api/', 'scope_group' => 31, 'name' => 'USER_STATUS', 'user_check' => 1],
['api_route' => '/apps/notifications/api/', 'scope_group' => 32, 'name' => 'NOTIFICATIONS', 'user_check' => 1],
Expand Down

0 comments on commit b86bb22

Please sign in to comment.