mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
[bug fixes] [global defaults] [cleanup]
This commit is contained in:
@@ -147,7 +147,7 @@ class DocType:
|
||||
|
||||
def get_authorized_user(self):
|
||||
# Check logged-in user is authorized
|
||||
if webnotes.conn.get_value('Global Defaults', None, 'credit_controller') \
|
||||
if webnotes.conn.get_value('Accounts Settings', None, 'credit_controller') \
|
||||
in webnotes.user.get_roles():
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user