From 3a1437fe9cb0bf984ef3cddbc020a88c4edd4e61 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 6 May 2021 16:28:38 +0300 Subject: [PATCH] Access control: Move enterprise-specific access control actions (#33781) * Access control: add reporting permissions * Move enterprise-specific access control actions --- public/app/core/services/context_srv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/services/context_srv.ts b/public/app/core/services/context_srv.ts index e1062292de2..a948572673d 100644 --- a/public/app/core/services/context_srv.ts +++ b/public/app/core/services/context_srv.ts @@ -77,7 +77,7 @@ export class ContextSrv { } // Checks whether user has required permission - hasPermission(action: AccessControlAction): boolean { + hasPermission(action: AccessControlAction | string): boolean { // Fallback if access control disabled if (!config.featureToggles['accesscontrol']) { return true;