Restrict actions on tickets and hide links depending on permissions