frappe:develop
← ankush:debug_has_perm
opened 08:47AM - 10 Jan 24 UTC
This PR adds a virtual doctype that can run has_permission for
doctype-docname-…user-ptype combinations and spit out detailed log for
why/where some permissions are denied or granted.
This isn't supposed to be used programatically, it's just a textual dump of what the code is doing.

IMO a better debugger can be written but that will require extensive
rewrite of perm checks first. All debugging, error messages in current
systems are bolted on top with hacks to avoid messing with
implementation.
As of now this is only meant to be used by power users or support personnel.
`no-docs`