Hide buttons for logged in, but unauthorized users

This is the recommended approach. Edit buttons will be visible for guests,
and will be hidden if a logged in user does not have access. This is the
most "friendly" approach in that a guest can click any button (for ex. edit or
attach) and will be prompted to log in.