Skip to content

Commit

Permalink
deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxachun committed Feb 22, 2024
1 parent 1bca1ce commit 7efdfc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export class UserPermissionsService {
}

async getAvailablePermissions(): Promise<string[]> {
if (this.options.availablePermissions !== undefined)
console.warn("The availablePermissions option is deprecated and is not used anymore. You can remove it safely.");
return [
...new Set(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface UserPermissionsUserServiceInterface {
}

export interface UserPermissionsOptions {
availablePermissions?: string[]; // TODO Remove in Comet 7
availableContentScopes?: ContentScope[] | (() => Promise<ContentScope[]> | ContentScope[]);
}
export interface UserPermissionsModuleSyncOptions extends UserPermissionsOptions {
Expand Down

0 comments on commit 7efdfc7

Please sign in to comment.