[minor] frappe.permissions.apply_user_permissions - Check if apply_user_permissions is checked for a doctype, perm type, user combination