fixes to representation viewer access control