Consolidate action access to a single location

Views and blocks were using different ways to decide what a user can and cannot
do.  This pulls the related code out of the view helper and reuses in both the
view helpers and the blocks.

Change-Id: I03956a78c493fc56e5aad11aab9ffce17e56bba5
Merge "Consolidate action access to a single location"