Skip to content
Snippets Groups Projects
user avatar
Nasreddin Boulif (bon) authored
Steps to reproduce:

- Install `E-learning` module
- Create a user X with only "Officer" as rights for `E-learning`
- Login with user X
- Go to `E-learning` and open any course
- Ensure that the user X is not the responsible and that the course
  enroll policy is set to "On invitation"
- Invite any user not already a member

Issue:

  No user was invited (not added as member) and no warning message
  raised.

Cause:

  Due to the ir.rule "Channel: officer: create/write own only", the
  `Officer` user can only edit (and therefore invite members) on
  courses where he is responsible.

Solution:

  In the wizard, we check if the user has the rights to invite members
  on the course when sending the invitation. If not, we raise an error.

opw-3133733

closes odoo/odoo#119607

X-original-commit: d341efaf
Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
0d0fb3a4
History
Name Last commit Last update