check class access