Skip to content

Commit

Permalink
Disable ACL myRights as it is in the Settings -> Folder popup #157
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Feb 13, 2024
1 parent 39c17b6 commit e4c7cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dev/Model/FolderCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -382,7 +382,7 @@ export class FolderModel extends AbstractModel {
'maySetSeen': true,
'maySubmit': true
};

*/
this.addComputables({

isInbox: () => FolderType.Inbox === this.type(),
Expand Down
3 changes: 2 additions & 1 deletion snappymail/v/0.0.0/app/libraries/MailSo/Imap/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function jsonSerialize()
'id' => $this->MAILBOXID,
'size' => $this->SIZE,
'role' => $this->Role(),

/*
'rights' => $this->myRights,
'myRights' => $this->myRights ?: [
'mayReadItems' => $selectable,
Expand All @@ -176,6 +176,7 @@ public function jsonSerialize()
'mayDelete' => $selectable,
'maySubmit' => $selectable
]
*/
);
if ($this->etag) {
$result['etag'] = $this->etag;
Expand Down

0 comments on commit e4c7cec

Please sign in to comment.