[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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user