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

17 lines
389 B
JavaScript
Raw Normal View History

/**
2026-01-28 17:09:06 -08:00
* Copyright IBM Corp. 2021, 2026
* SPDX-License-Identifier: BUSL-1.1
*/
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;
}
}