File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = permissions => async (req) => {
38
38
// if one of the `permission` requires to know Project Members, but current route doesn't belong to any project
39
39
// this means such `permission` most likely has been applied by mistake, so we throw an error
40
40
const permissionsRequireProjectMembers = _ . isArray ( permissions )
41
- ? _ . some ( permissions , permission => util . hasPermissionByReq ( permission , req ) )
41
+ ? _ . some ( permissions , permission => util . isPermissionRequireProjectMembers ( permission ) )
42
42
: util . isPermissionRequireProjectMembers ( permissions ) ;
43
43
44
44
if ( _ . isUndefined ( req . params . projectId ) && permissionsRequireProjectMembers ) {
@@ -60,6 +60,7 @@ module.exports = permissions => async (req) => {
60
60
// - if user has permissions to access endpoint even we don't know if he is a member or no,
61
61
// then code would proceed and endpoint would decide to throw 404 if project doesn't exist
62
62
// or perform endpoint operation if loading project members above failed because of some other reason
63
+ req . log . error ( `Cannot load project members: ${ err . message } .` ) ;
63
64
}
64
65
}
65
66
You can’t perform that action at this time.
0 commit comments