disable profile view for all users to avoid confusion
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user