#43425·frappe

Role Permissions Manager overwrites rules when adding multiple rules for the same Role and DocType

Author: vuballer2026Created Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Information about bug

  1. Describe the bug: In the Role Permissions Manager, when attempting to create two separate permission rules for the same Role on the same DocType (one rule with "Only If Creator" unchecked for Read access, and another rule with "Only If Creator" checked for Cancel/Delete access), updating the checkboxes in one rule automatically reflects/overwrites the checkboxes in the second rule. It is impossible to maintain two distinct rules for the same Role.

  2. Steps to reproduce: Go to Role Permissions Manager. Select any DocType (e.g., Sales Invoice) and select a Role (e.g., Sales User). Add Rule 1: Uncheck Only If Creator. Check Read. Click "Add a new rule". Add Rule 2: Select the same Role (Sales User). Check Only If Creator. Check Write, Submit, Cancel, Delete. Save / Update. Observe that modifying permissions on Rule 1 automatically mirrors the changes onto Rule 2, merging them into conflicting permissions.

  3. Expected behavior: The system should allow two independent rows of permissions for the same Role on the same DocType, allowing a user to have "Read" access to all documents, but "Write/Cancel/Delete" access strictly limited to documents they created ("Only If Creator").

  4. Actual behavior: The rules overwrite/mirror each other, making it impossible to separate "Only If Creator" actions from global "Read" actions within a single Role.

Module

other

Version

ERPNext Version - v15.100.2 Frappe Version - v15.101.5

Installation method

None

Relevant log output / Stack trace / Full Error Message.

bash