[Critical Bug][v13] User Permissions not saving


For a multicompany setup, I am trying to restrict a user to a particular company.
When I create a user permission and save it with the “apply to all doctypes” checked, the status remains unsaved while the popup shows saved. (screenshot attached)

To confirm if the user permission is actually created, I logged into the said userid, but no, it wasn’t saved.

But if the “apply to all doctypes” is unchecked the user permission gets saved, for particular doctype.

ERPNext: v13.14.1 (version-13)
Frappe Framework: v13.14.1 (HEAD)
(I am hosted on FrappeCloud)

Can anyone confirm the issue?

Steps to reproduce:

  1. Create Multicompany setup
  2. Set user permission for a particular company (check the “applicable to all doctypes”)

Same error here on frappe cloud