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

8 lines
172 B
JavaScript

import BaseAbility from './base';
export default class PermissionAbility extends BaseAbility {
get canRead() {
return this.permissions.permissions.length > 0;
}
}