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