Add/edit url only appears if user is logged in

I fixed a bug I introduced earlier for ticket 869.