Greetings,
How can I remove the system designer button so that not any one could access it? I want only some specific users who can do so.
It would be great if someone could share both methods (Code and Configurations) if they exist
Like
Unfortunately, there is no "configuration method" to do this, only with code.
The best way to do this would be to create your own operation permission for users who can see the button.
To do this:
1) Create operation permission
http://prntscr.com/qacr18
http://prntscr.com/qacr4w
2) Create a replacing schema with parent schema
MainHeaderSchema
3) Add the logic to bind the visibility of the button to the method that checks if the user is in the operation:
define("MainHeaderSchema", ["RightUtilities"], function(rightUtilities) {
return {
attributes:{
"DesignerButtonVisible": {
dataValueType: this.Terrasoft.DataValueType.BOOLEAN,
value: true
}
},
methods:{
init: function() {
this.CheckCanSeeSysDesignerButton();
this.callParent(arguments);
},
CheckCanSeeSysDesignerButton: function(callback, scope) {
rightUtilities.checkCanExecuteOperation({
operation: "CanSeeSysDesigner"
}, function(result) {
this.set("DesignerButtonVisible", result);
Ext.callback(callback, scope, [result]);
}, this);
}
},
diff:[
{
"operation": "merge",
"name": "SystemDesignerButton",
"parentName": "SystemDesignerContainer",
"propertyName": "items",
"values": {
"visible": {"bindTo": "DesignerButtonVisible"}
}
}
]
};
});
Dear Adriana,
Unfortunately, the only possible way to hide the button is the one which was proposed by Dennis above.
We have added your request to the problem registered for the responsible R&D team to add this functionality into configuration in future releases so to increase the problem's priority.
Kind regards,
Roman
Hello noyzada,
Unfortunately, such functionality has not been implemented yet, we have a corresponding query registered for our R&D team to consider implementing such functionality in oob version of a system, but unfortunately, due to complexity of such task there is no ETA.
Best regards,
Anastasiia