1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-08 16:30:26 +00:00

#8862 fix bug with ACL permissions (#8864)

This commit is contained in:
webplusai 2024-12-24 12:01:18 +00:00 committed by GitHub
parent d72a4c9826
commit b8f2800dab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}