Fixed permission switch mistake

This commit is contained in:
WolverinDEV 2019-09-22 12:46:14 +02:00
parent 9cb069db5a
commit 2ed0721af3

View File

@ -288,9 +288,9 @@ inline sql::result load_permissions_v2(const std::shared_ptr<TSServer>& server,
} }
if(!resolve_channel || !channel) 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 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; return 0;
}); });