bool Pool::authorizeByApiKey(const ApiKey &key, bool lock) const { return key.isSuper() || findGroupByApiKey(key.toStaticString(), lock) != NULL; }
bool Group::authorizeByApiKey(const ApiKey &key) const { return key.isSuper() || key == getApiKey(); }