Skip to content

Commit

Permalink
#8862 fix bug with ACL permissions (#8864)
Browse files Browse the repository at this point in the history
  • Loading branch information
webplusai authored Dec 24, 2024
1 parent d72a4c9 commit b8f2800
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b8f2800

Please sign in to comment.