Skip to content

Commit

Permalink
Fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHllm committed Apr 20, 2024
1 parent 724a5d2 commit 7cbaac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/allNotes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var Sequelize = require('sequelize')
function checkViewPermission (req, note) {
if (note.permission === 'private') {
if (!req.isAuthenticated() || note.ownerId !== req.user.id) { return false } else { return true }
} else if (note.permission === 'freely' || note.permission === 'editable' || note.permission === 'limited' || note.permission === 'locked' || note.permission === 'protected') {
} else if (note.permission === 'freely' || note.permission === 'editable' || note.permission === 'limited' || note.permission === 'locked' || note.permission === 'protected') {
if (!req.isAuthenticated()) { return false } else { return true }
} else {
return false
Expand Down
2 changes: 1 addition & 1 deletion lib/models/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ module.exports = function (sequelize, DataTypes) {
Note.parseNoteTags = function (body) {
const firstLine = body.split('\n')[0]
const tagHeader = '###### tags: '
if(!firstLine.startsWith(tagHeader)) {
if (!firstLine.startsWith(tagHeader)) {
return []
}
const tagLine = firstLine.substring(tagHeader.length)
Expand Down

0 comments on commit 7cbaac6

Please sign in to comment.