permissions.ts 257 B

1234567
  1. import { contextSrv } from 'app/core/core';
  2. import { AccessControlAction } from '../../types';
  3. export const canEditReport =
  4. contextSrv.hasPermission(AccessControlAction.ReportingWrite) ||
  5. contextSrv.hasPermission(AccessControlAction.ReportingCreate);