mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Disable ACL myRights as it is in the Settings -> Folder popup #157
This commit is contained in:
parent
39c17b6493
commit
e4c7cec7e3
2 changed files with 4 additions and 3 deletions
|
|
@ -369,7 +369,7 @@ export class FolderModel extends AbstractModel {
|
||||||
})
|
})
|
||||||
.extend({ notify: 'always' });
|
.extend({ notify: 'always' });
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
// https://www.rfc-editor.org/rfc/rfc8621.html#section-2
|
// https://www.rfc-editor.org/rfc/rfc8621.html#section-2
|
||||||
this.myRights = {
|
this.myRights = {
|
||||||
'mayAddItems': true,
|
'mayAddItems': true,
|
||||||
|
|
@ -382,7 +382,7 @@ export class FolderModel extends AbstractModel {
|
||||||
'maySetSeen': true,
|
'maySetSeen': true,
|
||||||
'maySubmit': true
|
'maySubmit': true
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
this.addComputables({
|
this.addComputables({
|
||||||
|
|
||||||
isInbox: () => FolderType.Inbox === this.type(),
|
isInbox: () => FolderType.Inbox === this.type(),
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ class Folder implements \JsonSerializable
|
||||||
'id' => $this->MAILBOXID,
|
'id' => $this->MAILBOXID,
|
||||||
'size' => $this->SIZE,
|
'size' => $this->SIZE,
|
||||||
'role' => $this->Role(),
|
'role' => $this->Role(),
|
||||||
|
/*
|
||||||
'rights' => $this->myRights,
|
'rights' => $this->myRights,
|
||||||
'myRights' => $this->myRights ?: [
|
'myRights' => $this->myRights ?: [
|
||||||
'mayReadItems' => $selectable,
|
'mayReadItems' => $selectable,
|
||||||
|
|
@ -176,6 +176,7 @@ class Folder implements \JsonSerializable
|
||||||
'mayDelete' => $selectable,
|
'mayDelete' => $selectable,
|
||||||
'maySubmit' => $selectable
|
'maySubmit' => $selectable
|
||||||
]
|
]
|
||||||
|
*/
|
||||||
);
|
);
|
||||||
if ($this->etag) {
|
if ($this->etag) {
|
||||||
$result['etag'] = $this->etag;
|
$result['etag'] = $this->etag;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue