Remove enforces for getters
This commit is contained in:
parent
e244163bdb
commit
e8bad80e59
7 changed files with 7 additions and 13 deletions
|
|
@ -37,7 +37,6 @@ function hash(entity) {
|
|||
}
|
||||
|
||||
async function _getByTx(tx, context, key, value, extraColumns = []) {
|
||||
shares.enforceGlobalPermission(context, 'manageUsers');
|
||||
const columns = ['id', 'username', 'name', 'email', 'namespace', 'role', ...extraColumns];
|
||||
|
||||
const user = await tx('users').select(columns).where(key, value).first();
|
||||
|
|
@ -110,7 +109,6 @@ async function serverValidate(context, data, isOwnAccount) {
|
|||
}
|
||||
|
||||
async function listDTAjax(context, params) {
|
||||
shares.enforceGlobalPermission(context, 'manageUsers');
|
||||
return await dtHelpers.ajaxListWithPermissions(
|
||||
context,
|
||||
[{ entityTypeId: 'namespace', requiredOperations: ['manageUsers'] }],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue