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

17 lines
387 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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;
}
}