- replace deprecated "ad_permission_p" by "permission::permission_p"