@rufous/aem 1.1.54 → 1.1.55

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.
@@ -14,7 +14,8 @@ exports.requireCompanyEmployeeAuth = function (req, res, next) {
14
14
  if (req.currentUser.uty != user_type_1.UserType.CompanyEmployee
15
15
  && req.currentUser.uty != user_type_1.UserType.CompanyEmployeeManager
16
16
  && req.currentUser.uty != user_type_1.UserType.CompanyManager
17
- && req.currentUser.uty != user_type_1.UserType.CompanySuperuser) {
17
+ && req.currentUser.uty != user_type_1.UserType.CompanySuperuser
18
+ && req.currentUser.uty != user_type_1.UserType.CompanyUser) {
18
19
  throw new not_authorized_error_1.NotAuthorizedError();
19
20
  }
20
21
  next();
@@ -14,7 +14,8 @@ exports.requirePartnerEmployeeAuth = function (req, res, next) {
14
14
  if (req.currentUser.uty != user_type_1.UserType.PartnerEmployee
15
15
  && req.currentUser.uty != user_type_1.UserType.PartnerEmployeeManager
16
16
  && req.currentUser.uty != user_type_1.UserType.PartnerManager
17
- && req.currentUser.uty != user_type_1.UserType.PartnerSuperuser) {
17
+ && req.currentUser.uty != user_type_1.UserType.PartnerSuperuser
18
+ && req.currentUser.uty != user_type_1.UserType.PartnerUser) {
18
19
  throw new not_authorized_error_1.NotAuthorizedError();
19
20
  }
20
21
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rufous/aem",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [