archive email require import access

This commit is contained in:
Yuri Kuznetsov
2024-07-08 22:18:15 +03:00
parent 6783331aab
commit cb7f87a3f1
2 changed files with 5 additions and 0 deletions
@@ -45,6 +45,7 @@
],
"dropdown":[
{
"name": "archiveEmail",
"label":"Archive Email",
"link":"#Email/create",
"acl":"create"
+4
View File
@@ -253,6 +253,10 @@ class EmailListView extends ListView {
});
}
if (!this.getAcl().checkScope('Import')) {
this.hideHeaderActionItem('archiveEmail');
}
if (this.getUser().isAdmin()) {
this.addMenuItem('dropdown', {
link: '#InboundEmail',