consul/ui/packages/consul-ui/app/abilities/permission.js

13 lines
251 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import BaseAbility from './base';
export default class PermissionAbility extends BaseAbility {
get canRead() {
return this.permissions.permissions.length > 0;
}
}