Skip to content

Commit

Permalink
add missing privileges.getOwnPrivileges implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Oct 6, 2023
1 parent 2e4296c commit d5d7abd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/core/get-superdesk-api-implementation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ export function getSuperdeskApiImplementation(
getRelativeOrAbsoluteDateTime: getRelativeOrAbsoluteDateTime,
},
privileges: {
getOwnPrivileges: () => privileges.loaded.then(() => privileges.privileges),
hasPrivilege: (privilege: string) => sdApi.user.hasPrivilege(privilege),
},
preferences: {
Expand Down

0 comments on commit d5d7abd

Please sign in to comment.