mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
8263879e6f
This commit use the internal authorize endpoint along wiht ember-can to further restrict user access to certain UI features and navigational elements depending on the users ACL token
8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
import BaseAbility from './base';
|
|
|
|
export default class PermissionAbility extends BaseAbility {
|
|
get canRead() {
|
|
return this.permissions.permissions.length > 0;
|
|
}
|
|
}
|