@riocrypto/common-server 1.0.515 → 1.0.516
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,7 +140,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
|
|
|
140
140
|
const BusinessUser = yield (0, business_user_1.buildBusinessUser)(mongoose);
|
|
141
141
|
brokerBusinessUser = yield BusinessUser.findOne({
|
|
142
142
|
authId: req.currentAuth.id,
|
|
143
|
-
attributes: { $
|
|
143
|
+
attributes: { $in: [common_1.UserAttribute.broker] },
|
|
144
144
|
});
|
|
145
145
|
if (!brokerBusinessUser) {
|
|
146
146
|
throw new Error();
|