no dashboard layout for portal useres

This commit is contained in:
yuri
2016-06-13 10:52:20 +03:00
parent 4ca2a7fa1a
commit c78254a8fa
3 changed files with 6 additions and 1 deletions

View File

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

View File

@@ -130,6 +130,10 @@
"emailReplyToAllByDefault": {
"type": "bool",
"default": true
},
"isPortalUser": {
"type": "bool",
"notStorable": true
}
}
}

View File

@@ -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');
}
},