Skip to content

Commit 1dfee92

Browse files
committedAug 12, 2016
Temporarily bypass permission checks on the server until session issue resolved
1 parent cb38892 commit 1dfee92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎app.ts

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ app.use(function (req, res, next) {
142142
var validatePermissions = require("mykoop-user/lib/common/validatePermissions");
143143
app.use(function (req, res, next) {
144144
req.userHasPermissions = function(permissions) {
145+
return true;
145146
if (!_.isPlainObject(permissions)) {
146147
logger.warn(
147148
"You need to call req.userHasPermissions with an object literal."

0 commit comments

Comments
 (0)
Please sign in to comment.