Skip to content

Commit

Permalink
TiddlyWiki#8862 fix bug with ACL permissions
Browse files Browse the repository at this point in the history
webplusai committed Dec 24, 2024
1 parent d72a4c9 commit 31373fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -569,7 +569,7 @@ SqlTiddlerDatabase.prototype.checkACLPermission = function(userId, entityType, e
const aclRecord = aclRecords.find(record => record.permission_name === permissionName);

// If no ACL record exists, return true for hasPermission
if ((!aclRecord && !ownerId) || ((!!aclRecord && !!ownerId) && ownerId === userId)) {
if ((!aclRecord && !ownerId && aclRecords.length === 0) || ((!!aclRecord && !!ownerId) && ownerId === userId)) {
return true;
}

0 comments on commit 31373fb

Please sign in to comment.