Dashboard actions use permissions

Instead of checking permissions directly, dashboard actions use the
same permission check function as what displays jobs, more consistent
and allows filters to be used for permissions.
Merge pull request #317 from AndyBond2007/master

Dashboard actions use permissions