Parametize admin class check