Can I know where the code that is responsible for handling the permission is existed? Because maybe there is a bug that need to be fixed or there I need to do customization.
Is it existed in frappe or I can find it in erpnext?
Appreciate the kindly help and advise.
With console access to the server, try a code search like this:
frappe@ubuntu:~/frappe-bench$ find . -name '*.py' | xargs grep 'permission'
The above expression reports all the Python files that contain ‘permission’.
To view the files, use Unix less or an editor, or from a web browser view the files on github.com
More search examples here Where do I go to setup Backups in new v8 - #19 by clarkej
Thank you @clarkej
Why to search only in .py files?
frappe@ubuntu:~/frappe-bench$ find . -name '*.js' | xargs grep 'permission'
frappe@ubuntu:~/frappe-bench$ find . -name '*.js' | xargs grep get_query