diff --git a/server/models/templates.js b/server/models/templates.js index 363c8811..eaf49587 100644 --- a/server/models/templates.js +++ b/server/models/templates.js @@ -20,7 +20,6 @@ function hash(entity) { } async function getByIdTx(tx, context, id, withPermissions = true) { - shares.enforceGlobalPermission(context, 'manageTemplates'); await shares.enforceEntityPermissionTx(tx, context, 'template', id, 'view'); const entity = await tx('templates').where('id', id).first(); entity.data = JSON.parse(entity.data); @@ -39,7 +38,6 @@ async function getById(context, id, withPermissions = true) { } async function _listDTAjax(context, namespaceId, params) { - shares.enforceGlobalPermission(context, 'manageTemplates'); return await dtHelpers.ajaxListWithPermissions( context, [{ entityTypeId: 'template', requiredOperations: ['view'] }],