Make category edit button conditional