mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 02:03:00 +00:00
10 lines
236 B
JavaScript
10 lines
236 B
JavaScript
|
import BaseAbility from './base';
|
||
|
|
||
|
export default class IntentionAbility extends BaseAbility {
|
||
|
resource = 'intention';
|
||
|
|
||
|
get canWrite() {
|
||
|
return super.canWrite && (typeof this.item === 'undefined' || this.item.IsEditable);
|
||
|
}
|
||
|
}
|