Add LOG_OFF flag in judge core
Add invited type contest permission check function