From 64bc9c6dbeb3e574f2a2a052750398d2bdf7e84d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 9 Jul 2020 21:54:09 -0700 Subject: [PATCH] disable profile view for all users to avoid confusion --- src/routes/profile.js | 2 -- 1 file changed, 2 deletions(-) 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));