Merge pull request #14397 from resilient-tech/fix-perm-delete

fix: unable to delete role permissions
This commit is contained in:
mergify[bot] 2021-10-08 12:21:04 +00:00 committed by GitHub
commit ac816bacdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -325,15 +325,15 @@ frappe.PermissionEngine = class PermissionEngine {
.attr("data-doctype", d.parent)
.attr("data-role", d.role)
.attr("data-permlevel", d.permlevel)
.click(function () {
.on("click", () => {
return frappe.call({
module: "frappe.core",
page: "permission_manager",
method: "remove",
args: {
doctype: $(this).attr("data-doctype"),
role: $(this).attr("data-role"),
permlevel: $(this).attr("data-permlevel")
doctype: d.parent,
role: d.role,
permlevel: d.permlevel
},
callback: (r) => {
if (r.exc) {