fix: navigate between role profiles not changes the roles

This commit is contained in:
Rohit Waghchaure 2020-03-31 16:36:15 +05:30
parent d3e8cad270
commit 1d4a14802e

View file

@ -2,7 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on('Role Profile', {
setup: function(frm) {
refresh: function(frm) {
if(has_common(frappe.user_roles, ["Administrator", "System Manager"])) {
if(!frm.roles_editor) {
var role_area = $('<div style="min-height: 300px">')