Fixed permission skip negate switch

This commit is contained in:
WolverinDEV 2019-09-22 12:45:33 +02:00
parent 647248009d
commit 155bfb3185

View File

@ -288,9 +288,9 @@ inline sql::result load_permissions_v2(const std::shared_ptr<TSServer>& server,
}
if(!resolve_channel || !channel)
manager->load_permission(key, {value, granted}, negated, skipped, value != permNotGranted, granted != permNotGranted);
manager->load_permission(key, {value, granted}, skipped, negated, value != permNotGranted, granted != permNotGranted);
else
manager->load_permission(key, {value, granted}, channel->channelId(), negated, skipped, value != permNotGranted, granted != permNotGranted);
manager->load_permission(key, {value, granted}, channel->channelId(), skipped, negated, value != permNotGranted, granted != permNotGranted);
return 0;
});