From 155bfb3185e34135033a3ef8b4d97fc3229b7ae3 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 22 Sep 2019 12:45:33 +0200 Subject: [PATCH] Fixed permission skip negate switch --- server/src/DatabaseHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/DatabaseHelper.cpp b/server/src/DatabaseHelper.cpp index 90db491..9cca201 100644 --- a/server/src/DatabaseHelper.cpp +++ b/server/src/DatabaseHelper.cpp @@ -288,9 +288,9 @@ inline sql::result load_permissions_v2(const std::shared_ptr& 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; });