mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
categories disable if not read access
This commit is contained in:
@@ -111,7 +111,7 @@ class ListWithCategories extends ListView {
|
||||
this.categoriesDisabled =
|
||||
this.categoriesDisabled ||
|
||||
this.getMetadata().get(['scopes', this.categoryScope, 'disabled']) ||
|
||||
!this.getAcl().checkScope(this.categoryScope);
|
||||
!this.getAcl().checkScope(this.categoryScope, 'read');
|
||||
|
||||
if (this.categoriesDisabled) {
|
||||
this.isExpanded = true;
|
||||
|
||||
Reference in New Issue
Block a user