Merge branch 'hotfix/6.0.7'
This commit is contained in:
@@ -37,13 +37,7 @@ interface Builder
|
||||
{
|
||||
/**
|
||||
* Build a query instance.
|
||||
* @todo Uncomment when 7.4 is a min supported PHP version. Need the support of contravariant method parameters.
|
||||
* @todo Uncomment when 7.4 is a min supported PHP version.
|
||||
*/
|
||||
//public function build() : Query;
|
||||
|
||||
/**
|
||||
* Clone an existing query for a further modification and building.
|
||||
* @todo Uncomment when 7.4 is a min supported PHP version. Need the support of contravariant method parameters.
|
||||
*/
|
||||
//public function clone(Query $query) : self;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
"isActive": {
|
||||
"nonAdminReadOnly": true
|
||||
},
|
||||
"emailAddress": {
|
||||
"nonAdminReadOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"nonAdminReadOnly": true
|
||||
},
|
||||
|
||||
@@ -219,7 +219,13 @@ define('views/admin/layouts/index', 'view', function (Dep) {
|
||||
},
|
||||
|
||||
navigate: function (scope, type) {
|
||||
this.getRouter().navigate('#Admin/layouts/scope=' + scope + '&type=' + type, {trigger: false});
|
||||
var url = '#Admin/layouts/scope=' + scope + '&type=' + type;
|
||||
|
||||
if (this.em) {
|
||||
url += '&em=true';
|
||||
}
|
||||
|
||||
this.getRouter().navigate(url, {trigger: false});
|
||||
},
|
||||
|
||||
renderDefaultPage: function () {
|
||||
|
||||
@@ -126,7 +126,9 @@ define('views/user/record/detail', 'views/record/detail', function (Dep) {
|
||||
},
|
||||
|
||||
setupNonAdminFieldsAccess: function () {
|
||||
if (this.getUser().isAdmin()) return;
|
||||
if (this.getUser().isAdmin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
var nonAdminReadOnlyFieldList = [
|
||||
'userName',
|
||||
@@ -138,9 +140,30 @@ define('views/user/record/detail', 'views/record/detail', function (Dep) {
|
||||
'portalRoles',
|
||||
'contact',
|
||||
'accounts',
|
||||
'type'
|
||||
'type',
|
||||
'emailAddress',
|
||||
];
|
||||
|
||||
nonAdminReadOnlyFieldList = nonAdminReadOnlyFieldList.filter(
|
||||
function (item) {
|
||||
if (!this.model.hasField(item)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var aclDefs = this.getMetadata().get(['entityAcl', 'User', 'fields', item]);
|
||||
|
||||
if (!aclDefs) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aclDefs.nonAdminReadOnly) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}.bind(this),
|
||||
);
|
||||
|
||||
nonAdminReadOnlyFieldList.forEach(function (field) {
|
||||
this.setFieldReadOnly(field, true);
|
||||
}, this);
|
||||
|
||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "espocrm",
|
||||
"version": "6.0.6",
|
||||
"version": "6.0.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "espocrm",
|
||||
"version": "6.0.6",
|
||||
"version": "6.0.7",
|
||||
"description": "",
|
||||
"main": "index.php",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user