From e4c7cec7e3f62943f856fb9903f19cfcafa327d4 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 13 Feb 2024 11:42:46 +0100 Subject: [PATCH] Disable ACL myRights as it is in the Settings -> Folder popup #157 --- dev/Model/FolderCollection.js | 4 ++-- snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/Model/FolderCollection.js b/dev/Model/FolderCollection.js index c14e4be5f..10ae62a2a 100644 --- a/dev/Model/FolderCollection.js +++ b/dev/Model/FolderCollection.js @@ -369,7 +369,7 @@ export class FolderModel extends AbstractModel { }) .extend({ notify: 'always' }); */ - +/* // https://www.rfc-editor.org/rfc/rfc8621.html#section-2 this.myRights = { 'mayAddItems': true, @@ -382,7 +382,7 @@ export class FolderModel extends AbstractModel { 'maySetSeen': true, 'maySubmit': true }; - +*/ this.addComputables({ isInbox: () => FolderType.Inbox === this.type(), diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php index 0a8ded6f7..4a9b2dd21 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php @@ -163,7 +163,7 @@ class Folder implements \JsonSerializable 'id' => $this->MAILBOXID, 'size' => $this->SIZE, 'role' => $this->Role(), - +/* 'rights' => $this->myRights, 'myRights' => $this->myRights ?: [ 'mayReadItems' => $selectable, @@ -176,6 +176,7 @@ class Folder implements \JsonSerializable 'mayDelete' => $selectable, 'maySubmit' => $selectable ] +*/ ); if ($this->etag) { $result['etag'] = $this->etag;