Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to invert role selection for trigger. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krostas1983
Copy link

As lifecycletrigger_byrole has a handy delay function to delay setting the trigger off, we wanted to use it with a "watchdog" role like "Authenticated User" which is not present in any course ever. Unfortunately, this would not be limited to any courses outside our desired category (set up in a parallel trigger), as each trigger works independently of others. The delay would then begin upon activation of the workflow...

We liked the idea of a watchdog role, however. We created a category enrolment for that role within our "trash" category and added the option to invert the role selection for this trigger. In this way this trigger can be used as:

  • a simple delay trigger
  • a category trigger
  • a manual trigger (if teachers are allowed to assign this role, possibly to themselves)

@NinaHerrmann
Copy link
Contributor

NinaHerrmann commented Dec 4, 2023

Looks reasonable to me - could you add a PHPUnit test for maintenance? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants