fix: add "If Owner" column to roles viewer (#25218)

This commit is contained in:
Raffael Meyer 2024-03-04 11:03:55 +01:00 committed by GitHub
parent 7a854efc03
commit bfb1c3e7e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,6 +69,7 @@ frappe.RoleEditor = class {
<tr>
<th> ${__("Document Type")} </th>
<th> ${__("Level")} </th>
<th> ${__("If Owner")} </th>
${frappe.perm.rights.map((p) => `<th> ${__(frappe.unscrub(p))}</th>`).join("")}
</tr>
</thead>
@ -80,6 +81,7 @@ frappe.RoleEditor = class {
<tr>
<td>${__(perm.parent)}</td>
<td>${perm.permlevel}</td>
<td>${perm.if_owner ? frappe.utils.icon("check", "xs") : "-"}</td>
${frappe.perm.rights
.map(
(p) =>