[FIX] knowledge: fix changing internal permission

Before this commit, it was not possible to change the internal permission in the permission panel.
This commit fixes that.

Task-2674460

closes odoo/odoo#91283

Signed-off-by: David Beguin (dbe) <dbe@odoo.com>
This commit is contained in:
Odoo's Mergebot
2022-05-13 10:53:38 +02:00
committed by GitHub
@@ -87,9 +87,6 @@ class PermissionPanel extends Component {
const index = this.state.members.findIndex(current => {
return current.partner_id === session.partner_id;
});
if (index < 0) {
return;
}
const newPermission = $select.val();
const oldPermission = this.state.internal_permission;
const willRestrict = this.state.based_on && permissionLevel[newPermission] < permissionLevel[oldPermission]