13 lines
309 B
JavaScript
13 lines
309 B
JavaScript
import ModelAbility from 'api/abilities/model';
|
|
|
|
export default class OverrideModelAbility extends ModelAbility {
|
|
/**
|
|
* Navigating to a resource is allowed if either list or create grants
|
|
* are present.
|
|
* @type {boolean}
|
|
*/
|
|
get canNavigate() {
|
|
return this.canList || this.canCreate;
|
|
}
|
|
}
|