Skip to content

Commit

Permalink
Removing accidental friendly-fire on can-scale
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Jul 9, 2022
1 parent 0b22998 commit cd1eea1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/app/abilities/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class Job extends AbstractAbility {
@or(
'bypassAuthorization',
'selfTokenIsManagement',
'policiesSupportRunning',
'specificNamespaceSupportsRunning',
'policiesSupportScaling'
)
canScale;
Expand Down Expand Up @@ -53,6 +53,11 @@ export default class Job extends AbstractAbility {
);
}

@computed('[email protected]')
get specificNamespaceSupportsRunning() {
return this.namespaceIncludesCapability('submit-job');
}

@computed('[email protected]')
get policiesSupportScaling() {
return this.namespaceIncludesCapability('scale-job');
Expand Down

0 comments on commit cd1eea1

Please sign in to comment.