diff --git a/src/routes/profile.js b/src/routes/profile.js index 35f10f9d5..34fa6806d 100644 --- a/src/routes/profile.js +++ b/src/routes/profile.js @@ -29,8 +29,6 @@ var assert = require('assert'), function authorize(req, res, next) { assert.strictEqual(typeof req.user, 'object'); - if (users.compareRoles(req.user.role, users.ROLE_USER_MANAGER) >= 0) return next(); - settings.getDirectoryConfig(function (error, directoryConfig) { if (error) return next(BoxError.toHttpError(error));