import { injectable } from '@cloudbeaver/core-di' ; import { PermissionsResource } from './PermissionsResource' ; export enum EPermission { public = 'public' } @ injectable ( ) export class PermissionsService { constructor ( private permissions ) { } has ( id ) { return this . permissions . has ( id ) ; } async hasAsync ( id ) { return this . permissions . hasAsync ( id ) ; } async update ( ) { await this . permissions . refresh ( ) ; } }