Currently importing data is reserved only for admin. Is it possible to modify the source code, or permissions to allow non-admin users to import data?
Announcement
Collapse
No announcement yet.
Importing Data
Collapse
X
-
I think it's tricky to implement properly. To do it roughly you can just remove this line: https://github.com/espocrm/espocrm/b...Import.php#L42
Comment
-
Hi,
I try this way (remove line 42 as this guide https://github.com/espocrm/espocrm/b...Import.php#L42 ) but import result show this error:
Error 403
You don't have an access to this area."
Please advise
Comment
-
Hi,
you need to modify at least one more file https://github.com/espocrm/espocrm/b.../import.js#L34
Comment
-
Hi,
I update import.js file as below
Espo.define('controllers/import', 'controllers/record', function (Dep) {
return Dep.extend({
defaultAction: 'index',
checkAccess: function () {
if (this.getUser().isAdmin()) {
return true;
}
return true;
},
index: function () {
this.main('Import.Index', null);
}
});
});
But the error still same
Comment
Comment