Check the caps before adding edit or delete actions

Check the caps before adding edit or delete actions, and before making the item name a link to edit it.

When you give users the `list_users` cap who wouldn't normally have it, they show up on the Guest Authors page with a lot of "empty" links.