mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Move every ImpersonatedUsers.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
e30edce73e
commit
767d8e66e7
5 changed files with 56 additions and 18 deletions
|
|
@ -42,9 +42,7 @@ runOnServer(function() {
|
|||
'services.resume.loginTokens.hashedToken': hashToken,
|
||||
});
|
||||
adminId = user._id.toString();
|
||||
impersonateDone = ImpersonatedUsers.findOne({
|
||||
adminId: adminId,
|
||||
});
|
||||
impersonateDone = ReactiveCache.getImpersonatedUser({ adminId: adminId });
|
||||
} else if (!Meteor.settings.public.sandstorm) {
|
||||
Authentication.checkUserId(req.userId);
|
||||
user = ReactiveCache.getUser({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue