Fixed permission switch mistake
This commit is contained in:
parent
9cb069db5a
commit
2ed0721af3
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user