-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing accidental friendly-fire on can-scale
- Loading branch information
1 parent
0b22998
commit cd1eea1
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ export default class Job extends AbstractAbility { | |
@or( | ||
'bypassAuthorization', | ||
'selfTokenIsManagement', | ||
'policiesSupportRunning', | ||
'specificNamespaceSupportsRunning', | ||
'policiesSupportScaling' | ||
) | ||
canScale; | ||
|
@@ -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'); | ||
|