diff --git a/ang/exportui.ang.php b/ang/exportui.ang.php index cb0871ed3073..f340a018f60a 100644 --- a/ang/exportui.ang.php +++ b/ang/exportui.ang.php @@ -13,6 +13,7 @@ 'ang/exportui', ], 'basePages' => [], + 'permissions' => ['administer CiviCRM'], 'requires' => [ 'crmUi', 'crmUtil', diff --git a/ang/exportui/export.html b/ang/exportui/export.html index 8a3e0936194b..2cca22fc9ebb 100644 --- a/ang/exportui/export.html +++ b/ang/exportui/export.html @@ -19,7 +19,7 @@ - + diff --git a/ang/exportui/exportui.js b/ang/exportui/exportui.js index 88bb01a268a1..91a8ee5e7316 100644 --- a/ang/exportui/exportui.js +++ b/ang/exportui/exportui.js @@ -22,6 +22,9 @@ contact_type: '', columns: [] }; + $scope.perms = { + admin: CRM.checkPerm('administer CiviCRM') + }; // For the "add new field" dropdown $scope.new = {col: ''}; var contactTypes = _.transform($scope.contact_types, function(result, type) {