dc183b1786
This commit use the internal authorize endpoint along wiht ember-can to further restrict user access to certain UI features and navigational elements depending on the users ACL token
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);
|
|
}
|
|
}
|