Possible fix for #879

This commit is contained in:
Tomas Bures 2020-05-28 01:05:23 +02:00
parent ebfbe30aa0
commit dad2618739
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ export default class List extends Component {
return (
<div>
<h2>{t('Mailtrain 2 beta')}</h2>
<div>{t('Build') + ' 2019-01-12-1254'}</div>
<div>{t('Build') + ' 2020-05-28-0102'}</div>
</div>
);
}

View file

@ -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;
}