mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
refactor: fix incorrect conditon
This commit is contained in:
@@ -112,8 +112,10 @@ def get_companies_with_frozen_limits():
|
||||
if not d.accounts_frozen_till_date:
|
||||
continue
|
||||
|
||||
if d.role_allowed_for_frozen_entries in frappe.get_roles() or frappe.session.user == "Administrator":
|
||||
continue
|
||||
if (
|
||||
d.role_allowed_for_frozen_entries not in frappe.get_roles()
|
||||
and frappe.session.user != "Administrator"
|
||||
):
|
||||
companies_with_frozen_limits[d.name] = getdate(d.accounts_frozen_till_date)
|
||||
return companies_with_frozen_limits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user