frappe.exceptions.PermissionError when opening login page

Whenever we come to login page. I keep getting this error. Any solutions?

frappe.exceptions.PermissionError:

You are not permitted to access this resource.Function frappe.desk.notifications.get_open_count is not whitelisted.

Hi,

Have you done any customization? If yes, please check you are calling a function which is not whitelisted.

Thanks,

Divyesh Mangroliya

I haven’t done any customization except 1 client side script which i have disabled

It is a whitelisted method; please try updating your app if it is not already updated.

Clear the cache after disabling client-side scripts; sometimes it takes effect only after clearing the cache.

Yes I have cross-checked that the app is updated and tried to clear the cache again, but the issue persists.

Check your notification.py file to see if the method is whitelisted. If you are on Frappe Cloud, try updating your app again.

when using the developer console I could see following error
website.js:183 Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 110, in application
frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 82, in execute_cmd
is_whitelisted(method)
File “apps/frappe/frappe/init.py”, line 913, in is_whitelisted
throw(msg, PermissionError, title=_(“Method Not Allowed”))
File “apps/frappe/frappe/init.py”, line 658, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 623, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 574, in _raise_exception
raise exc
frappe.exceptions.PermissionError:

You are not permitted to access this resource.Function frappe.desk.notifications.get_open_count is not whitelisted.