fixed method of check admin function in js