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.