From 49851ba54d63f5c65af0663774d2079d9f61332b Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Sun, 2 Jul 2023 19:45:41 -0600 Subject: [PATCH] Fix debug permissions for API 4 Explorer debug --- ang/api4Explorer.ang.php | 2 +- ang/api4Explorer/Explorer.html | 4 ++-- ang/api4Explorer/Explorer.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ang/api4Explorer.ang.php b/ang/api4Explorer.ang.php index e539892ca5..b7bfc25923 100644 --- a/ang/api4Explorer.ang.php +++ b/ang/api4Explorer.ang.php @@ -14,6 +14,6 @@ return [ ], 'basePages' => [], 'bundles' => ['bootstrap3'], - 'permissions' => ['access debug output', 'edit groups', 'administer reserved groups'], + 'permissions' => ['view debug output', 'edit groups', 'administer reserved groups'], 'requires' => ['crmUi', 'crmUtil', 'ngRoute', 'crmRouteBinder', 'ui.sortable', 'api4', 'ngSanitize'], ]; diff --git a/ang/api4Explorer/Explorer.html b/ang/api4Explorer/Explorer.html index 454d71a26d..db7057d3bb 100644 --- a/ang/api4Explorer/Explorer.html +++ b/ang/api4Explorer/Explorer.html @@ -266,7 +266,7 @@ {{:: ts('Result') }} -
  • +
  • {{:: ts('Debug') }} @@ -286,7 +286,7 @@
    
               
             
    -        
    +
    
               

    diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index da56492df8..5e13dcb626 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -36,7 +36,7 @@ $scope.selectedTab = {result: 'result'}; $scope.crmUrl = CRM.url; $scope.perm = { - accessDebugOutput: CRM.checkPerm('access debug output'), + viewDebugOutput: CRM.checkPerm('view debug output'), }; marked.setOptions({highlight: prettyPrintOne}); var getMetaParams = {}, -- 2.25.1