Permission in hooks.py

I am not able to understand the concept of permissions inside hook.py (including has_permission , has_website_permission , permission_query_condition). Please Explain the above fields in hooks.py file.

I have created custom pages (by creating .html and .py files) . I want to provide them access permission , So that It can Only be accessed after login.

Check below link.
https://github.com/frappe/frappe/blob/develop/frappe/docs/user/en/guides/basics/hooks.md#permissions

Thanks @suyash:slight_smile:

@suyash above link is broken please share new link

https://frappe.io/docs/user/en/guides/basics/hooks.md#permissions

Check section named Permissions