User::checkRolesを改善