[PATCH 2/3] Adds conditional_link method for conditional link based on permissions check