updates view permissions on login