Fixed permission assignments

This commit is contained in:
WolverinDEV 2020-05-14 15:18:39 +02:00
parent 5245e4ffc1
commit 14870efc11
3 changed files with 7 additions and 5 deletions

@ -1 +1 @@
Subproject commit a8a0aabd7fca05b950de9f781a3cd6ba5b799f79
Subproject commit be826ccb507a84d97c9c07397b05a8fe731f7ce5

View File

@ -78,13 +78,15 @@ namespace ts::command::bulk_parser {
inline void apply_to(const std::shared_ptr<permission::v2::PermissionManager>& manager, permission::v2::PermissionUpdateType mode) const {
if(this->is_grant_permission()) {
manager->set_permission(this->permission_type(), { this->value(), true }, permission::v2::PermissionUpdateType::do_nothing, mode);
manager->set_permission(this->permission_type(), { 0, this->value() }, permission::v2::PermissionUpdateType::do_nothing, mode);
} else {
manager->set_permission(
this->permission_type(),
{ this->value(), true },
{ this->value(), 0 },
mode,
permission::v2::PermissionUpdateType::do_nothing
permission::v2::PermissionUpdateType::do_nothing,
this->flag_skip(),
this->flag_negated()
);
}
}

2
shared

@ -1 +1 @@
Subproject commit a4febf7b5af191d41c566292958c55155128f16f
Subproject commit f404d5e1fa5ed1cfbe3ef9a97c0e81c1fba943ff