Small improvement of permission performance
This commit is contained in:
parent
03bad9e6f5
commit
bfeee49507
@ -361,6 +361,10 @@ const std::shared_ptr<groups::ChannelGroup>& ClientPermissionCalculator::assigne
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ClientPermissionCalculator::has_global_skip_permission() {
|
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 */
|
/* test for skip permission within the client permission manager */
|
||||||
{
|
{
|
||||||
auto client_permissions = this->client_permissions();
|
auto client_permissions = this->client_permissions();
|
||||||
|
Loading…
Reference in New Issue
Block a user