fixed grant permission bug
This commit is contained in:
parent
9f2181c18b
commit
7df26c36cb
@ -1179,7 +1179,7 @@ void v2::PermissionManager::set_permission(const PermissionType &permission, con
|
||||
if(action_grant == v2::PermissionUpdateType::set_value) {
|
||||
data.flags.grant_set = true;
|
||||
data.flags.flag_grant_update = true;
|
||||
data.values.grant = values.value;
|
||||
data.values.grant = values.grant;
|
||||
} else if(action_grant == v2::PermissionUpdateType::delete_value) {
|
||||
data.flags.grant_set = false;
|
||||
data.flags.flag_grant_update = true;
|
||||
@ -1242,7 +1242,7 @@ void v2::PermissionManager::set_channel_permission(const PermissionType &permiss
|
||||
} else if(action_value == v2::PermissionUpdateType::delete_value) {
|
||||
permission_container->flags.value_set = false;
|
||||
permission_container->flags.flag_value_update = true;
|
||||
permission_container->values.grant = permNotGranted; /* required for the database else it does not "deletes" the value */
|
||||
permission_container->values.value = permNotGranted; /* required for the database else it does not "deletes" the value */
|
||||
}
|
||||
|
||||
if(action_grant == v2::PermissionUpdateType::set_value) {
|
||||
|
Loading…
Reference in New Issue
Block a user