Disable ACL myRights as it is in the Settings -> Folder popup #157

This commit is contained in:
the-djmaze 2024-02-13 11:42:46 +01:00
parent 39c17b6493
commit e4c7cec7e3
2 changed files with 4 additions and 3 deletions

View file

@ -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(),

View file

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