hello i see we can display a filed only for assigned user but it possible to allow display only for admin group ? and how ?
regards
regards
define('custom:views/your-entity-type/record/detail', ['views/record/detail'], function (Dep) { return Dep.extend({ setup: function () { Dep.prototype.setup.call(this); this.showField('name'); }, afterRender: function () { Dep.prototype.afterRender.call(this); if (!this.getUser().isAdmin()) { this.hideField('name'); } }, }); });
{ "fields": { "yourField": { "adminOnly": true } }, "links": { "yourLink": { "nonAdminReadOnly": true } } }
{ "fields": { "informationsPourLeBadge": { "adminOnly": true }, "codecomptable": { "adminOnly": true } } }
Comment