Unable to set user permission for specific documents

I am trying to achieve this feature

https://docs.erpnext.com/docs/v14/user/manual/en/human-resources/articles/leave-approvals-as-per-hr-departments

But when “Leave Application” is kept unchecked. Then Update button does nothing.
I am using version 14 of frappe HR.

Can anyone please help.