Skip to content

Commit

Permalink
fix: add "If Owner" column to roles viewer (#25218) (#25219)
Browse files Browse the repository at this point in the history
(cherry picked from commit bfb1c3e)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed Mar 4, 2024
1 parent f50b53d commit 51db516
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frappe/public/js/frappe/roles_editor.js
Expand Up @@ -68,6 +68,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>
Expand All @@ -79,6 +80,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) =>
Expand Down

0 comments on commit 51db516

Please sign in to comment.