Skip to content

Commit

Permalink
Merge pull request #3825 from uselagoon/delete-systemwide-advtask
Browse files Browse the repository at this point in the history
fix: allow platform to delete systemwide tasks
  • Loading branch information
tobybellwood authored Oct 22, 2024
2 parents 9d9b5b4 + 78a6629 commit 3ca81ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/api/src/resources/task/task_definition_resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,11 @@ export const deleteAdvancedTaskDefinition = async (
group: group.id
});
break;
case AdvancedTaskDefinitionTarget.SystemWide:
await hasPermission('advanced_task', 'delete:advanced');
break;
default:
throw Error('Images and System Wide Tasks are not yet supported');
throw Error('Image Tasks are not yet supported');
}

const rows = await query(
Expand Down

0 comments on commit 3ca81ad

Please sign in to comment.