feat: 🎸 implement add sources on targets
This commit is contained in:
6 files changed
+68
-8
No files matched your search
@@ -13,6 +13,13 @@ export default class TargetAbility extends ModelAbility {
|
||||
return this.hasAuthorizedAction('authorize-session');
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get canAddHostSources() {
|
||||
return this.hasAuthorizedAction('add-host-sources');
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
@@ -20,6 +27,13 @@ export default class TargetAbility extends ModelAbility {
|
||||
return this.hasAuthorizedAction('remove-host-sources');
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get canAddCredentialSources() {
|
||||
return this.hasAuthorizedAction('add-credential-sources');
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user