Skip to content

Commit

Permalink
chore: set permissions to Rooms and Documents
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Jan 10, 2024
1 parent 141f7f3 commit e9ccd4a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ export class ContentDocumentsMainViewService extends KmcMainViewBaseService {
}

isAvailable(): boolean {
return true;
// return this._appPermissions.hasAnyPermissions([
// KMCPermissions.PLAYLIST_BASE,
// KMCPermissions.PLAYLIST_ADD,
// KMCPermissions.PLAYLIST_UPDATE,
// KMCPermissions.PLAYLIST_DELETE,
// KMCPermissions.PLAYLIST_EMBED_CODE
// ]);
return this._appPermissions.hasAnyPermissions([
KMCPermissions.CONTENT_MANAGE_BASE,
KMCPermissions.CONTENT_MANAGE_METADATA,
KMCPermissions.CONTENT_MANAGE_ASSIGN_CATEGORIES,
KMCPermissions.CONTENT_MANAGE_THUMBNAIL,
KMCPermissions.CONTENT_MANAGE_SCHEDULE,
KMCPermissions.CONTENT_MANAGE_ACCESS_CONTROL,
KMCPermissions.CONTENT_MANAGE_CUSTOM_DATA,
KMCPermissions.CONTENT_MANAGE_DELETE
]);
}

getRoutePath(): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ export class ContentRoomsMainViewService extends KmcMainViewBaseService {
}

isAvailable(): boolean {
return true;
// return this._appPermissions.hasAnyPermissions([
// KMCPermissions.PLAYLIST_BASE,
// KMCPermissions.PLAYLIST_ADD,
// KMCPermissions.PLAYLIST_UPDATE,
// KMCPermissions.PLAYLIST_DELETE,
// KMCPermissions.PLAYLIST_EMBED_CODE
// ]);
return this._appPermissions.hasAnyPermissions([
KMCPermissions.CONTENT_MANAGE_BASE,
KMCPermissions.CONTENT_MANAGE_METADATA,
KMCPermissions.CONTENT_MANAGE_ASSIGN_CATEGORIES,
KMCPermissions.CONTENT_MANAGE_THUMBNAIL,
KMCPermissions.CONTENT_MANAGE_SCHEDULE,
KMCPermissions.CONTENT_MANAGE_ACCESS_CONTROL,
KMCPermissions.CONTENT_MANAGE_CUSTOM_DATA,
KMCPermissions.CONTENT_MANAGE_DELETE
]);
}

getRoutePath(): string {
Expand Down

0 comments on commit e9ccd4a

Please sign in to comment.