diff options
Diffstat (limited to '')
-rwxr-xr-x | lib/response.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/response.js b/lib/response.js index 57d6861d..585d1d54 100755 --- a/lib/response.js +++ b/lib/response.js @@ -127,10 +127,10 @@ function checkViewPermission(req, note) { else return true; } else if (note.permission == 'limited' || note.permission == 'protected') { - if( !req.isAuthenticated() ) { + if(!req.isAuthenticated()) return false; - } - return true; + else + return true; } else { return true; } |