Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System User not able to change password #19

Closed
Fredoluka opened this issue Feb 9, 2023 · 2 comments
Closed

System User not able to change password #19

Fredoluka opened this issue Feb 9, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Fredoluka
Copy link

I have noticed that a system user cannot change his password in Erpnext version 14 which has the quota app installed. An error message "Insufficient Permission for Has Role" occurs whenever he tries to save the changed password. I think it is applicable to any modification a user wants to do on his or her user page.
When I uninstall the quota app, the issue stops.
Thanks

@femijoshuao
Copy link

@ahmadpak Thanks for fixing previous issues. I have similar issue. Social Logins are not working and triggers "You do not have enough permissions to complete the action", and stock balance report also triggered the following error.

Traceback (most recent call last): File "apps/frappe/frappe/core/doctype/prepared_report/prepared_report.py", line 44, in run_background create_json_gz_file(result["result"], "Prepared Report", instance.name) File "apps/frappe/frappe/core/doctype/prepared_report/prepared_report.py", line 136, in create_json_gz_file _file.save(ignore_permissions=True) File "apps/frappe/frappe/model/document.py", line 305, in save return self._save(*args, **kwargs) File "apps/frappe/frappe/model/document.py", line 327, in _save return self.insert() File "apps/frappe/frappe/model/document.py", line 259, in insert self.run_before_save_methods() File "apps/frappe/frappe/model/document.py", line 1040, in run_before_save_methods self.run_method("validate") File "apps/frappe/frappe/model/document.py", line 909, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1259, in composer return composed(self, method, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1243, in runner add_to_return_value(self, f(self, method, *args, **kwargs)) File "apps/erpnext_quota/erpnext_quota/erpnext_quota/quota.py", line 70, in files_space_limit validate_files_space_limit() File "apps/erpnext_quota/erpnext_quota/erpnext_quota/quota.py", line 113, in validate_files_space_limit frappe.throw(_(msg)) UnboundLocalError: local variable 'msg' referenced before assignment

@ahmadpak ahmadpak self-assigned this Mar 1, 2023
@ahmadpak ahmadpak added the bug Something isn't working label Mar 1, 2023
@ahmadpak
Copy link
Owner

ahmadpak commented Mar 5, 2023

@femijoshuao fixed for

  1. develop
  2. version-14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants