mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
no dashboard layout for portal useres
This commit is contained in:
@@ -132,6 +132,7 @@ class Preferences extends \Espo\Core\Controllers\Base
|
||||
|
||||
$entity->set('smtpEmailAddress', $user->get('emailAddress'));
|
||||
$entity->set('name', $user->get('name'));
|
||||
$entity->set('isPortalUser', $user->get('isPortalUser'));
|
||||
|
||||
$entity->clear('smtpPassword');
|
||||
|
||||
|
||||
@@ -130,6 +130,10 @@
|
||||
"emailReplyToAllByDefault": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"isPortalUser": {
|
||||
"type": "bool",
|
||||
"notStorable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ Espo.define('views/preferences/record/edit', 'views/record/edit', function (Dep)
|
||||
}, this);
|
||||
}
|
||||
|
||||
if (!this.getUser().isAdmin()) {
|
||||
if (!this.getUser().isAdmin() || this.model.get('isPortalUser')) {
|
||||
this.hideField('dashboardLayout');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user