Files
threshold-ui/ui/admin/app/abilities/model.js
T

12 lines
309 B
JavaScript
Raw Normal View History

import ModelAbility from 'api/abilities/model';
2022-01-31 12:02:37 -05:00
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;
}
}