- πΉπ·Turkey rgnyldz
This could be usefull, I also have a case where users can upgrade their licences. So the old one should be removed.
- Status changed to Fixed
8 months ago 8:32pm 25 July 2024 - πΊπΈUnited States rszrama
Unfortunately, this is just not how the Role license type works. It exists to grant a role to a user upon license activation, not to revoke a secondary role. Your options are to create your own license type that supports this logic, react to license activation to toggle that secondary role in an event subscriber, or hook into some other means of observing when roles change to make it happen. It's possible the ECA module would have features to support this without code, but I haven't looked into it myself.
Automatically closed - issue fixed for 2 weeks with no activity.