Possible fix for #879
This commit is contained in:
parent
ebfbe30aa0
commit
dad2618739
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ async function _getByTx(tx, context, key, value, extraColumns = []) {
|
|||
|
||||
// Note that getRestrictedAccessToken relies to this check to see whether a user may impersonate another. If "manageUsers" here were to be changed to something like "viewUsers", then
|
||||
// a corresponding check has to be added to getRestrictedAccessToken
|
||||
await shares.enforceEntityPermission(context, 'namespace', user.namespace, 'manageUsers');
|
||||
await shares.enforceEntityPermissionTx(tx, context, 'namespace', user.namespace, 'manageUsers');
|
||||
|
||||
return user;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue