fixed negate permission calculation
This commit is contained in:
parent
23324f2046
commit
a3baa8e5b4
@ -860,7 +860,7 @@ vector<pair<ts::permission::PermissionType, ts::permission::v2::PermissionFlagge
|
||||
}
|
||||
|
||||
if(found_negate) {
|
||||
server_group_data.erase(find_if(server_group_data.begin(), server_group_data.end(), [](auto data) { return std::get<2>(data); }), server_group_data.end());
|
||||
server_group_data.erase(find_if(server_group_data.begin(), server_group_data.end(), [](auto data) { return !std::get<2>(data); }), server_group_data.end());
|
||||
logTrace(this->serverId, "[Permission] Found negate flag within server groups. Groups left: {}", server_group_data.size());
|
||||
sassert(!server_group_data.empty()); /* this should never happen! */
|
||||
permission::PermissionValue current_lowest = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user