* empty commit
* Add missing copyright headers
* chore: 🤖 update copywrite config file with correct year
* Add missing copyright headers
* empty commit (gh action merge checks are stuck)
18 lines
389 B
JavaScript
18 lines
389 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2021, 2026
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
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;
|
|
}
|
|
}
|