Hooks not working as expected


I am trying to implement the following hooks
Document permissions
Override DocType Class
Override Whitelisted Methods

I have tried following the examples mentioned in the documentation but none of them seems to trigger. other hooks like doc_evetns, fixtures, doctype_js etc are working fine. Any idea what could be missing.



provide more details like your code for further analysis.

I have tried using the debugger. The code goes through the hooks file reads all the hooks properly but never executes the desired results. In this case never enters the file permissions.py in the custom app
Kindly see the following:



This is because there is already a has_permission hook defined for the File DocType

This behavior is mentioned in the Hooks - Document Permissions