diff --git a/src/models/WorkPoolQueue.ts b/src/models/WorkPoolQueue.ts index 67eaa2b80..cf025abb5 100644 --- a/src/models/WorkPoolQueue.ts +++ b/src/models/WorkPoolQueue.ts @@ -31,7 +31,7 @@ export interface IWorkPoolQueue { priority: number, lastPolled: Date | null, status: WorkPoolQueueStatus, - can: ObjectLevelCan<'work_pool_queue'>, + can: ObjectLevelCan<'work_queue'>, } export class WorkPoolQueue implements IWorkPoolQueue { @@ -48,7 +48,7 @@ export class WorkPoolQueue implements IWorkPoolQueue { public priority: number public lastPolled: Date | null public status: WorkPoolQueueStatus - public can: ObjectLevelCan<'work_pool_queue'> + public can: ObjectLevelCan<'work_queue'> public constructor(workPoolQueue: IWorkPoolQueue) { this.id = workPoolQueue.id diff --git a/src/services/can.ts b/src/services/can.ts index 48c8c4016..5eaea3b7a 100644 --- a/src/services/can.ts +++ b/src/services/can.ts @@ -19,7 +19,6 @@ export const workspacePermissions = [ 'create:task_run', 'create:variable', 'create:work_queue', - 'create:work_pool_queue', 'create:work_pool', 'create:workspace_bot_access', 'create:workspace_user_access', @@ -34,7 +33,6 @@ export const workspacePermissions = [ 'delete:saved_search', 'delete:task_run', 'delete:work_queue', - 'delete:work_pool_queue', 'delete:work_pool', 'delete:worker', 'delete:workspace_bot_access', @@ -53,7 +51,6 @@ export const workspacePermissions = [ 'read:task_run', 'read:variable', 'read:work_queue', - 'read:work_pool_queue', 'read:work_pool', 'read:worker', 'read:workspace_bot_access', @@ -70,7 +67,6 @@ export const workspacePermissions = [ 'update:task_run', 'update:variable', 'update:work_queue', - 'update:work_pool_queue', 'update:work_pool', 'update:workspace_bot_access', 'update:workspace_settings',