Small improvement of permission performance

This commit is contained in:
WolverinDEV 2021-05-26 12:39:55 +02:00
parent 03bad9e6f5
commit bfeee49507
1 changed files with 4 additions and 0 deletions

View File

@ -361,6 +361,10 @@ const std::shared_ptr<groups::ChannelGroup>& ClientPermissionCalculator::assigne
}
bool ClientPermissionCalculator::has_global_skip_permission() {
if(this->skip_enabled.has_value()) {
return *this->skip_enabled;
}
/* test for skip permission within the client permission manager */
{
auto client_permissions = this->client_permissions();