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

Issue #96: implement restriction by enrolment methods #103

Merged

Conversation

dmitriim
Copy link
Contributor

@dmitriim dmitriim commented Oct 23, 2023

In this MR we add a set of restriction classes. Those classes can limit users from being reset. A new should_reset method is responsible for a restriction logic. If one of the restrictions return false, then user is excluded from resetting.

Enrol restriction is added as part of this changes to close #96

Also as part of this change issue #98 is fixed as well as redirect when you press a cancel button in a reset completion for a user + a small bug when explode was used instead of implode to glue errors together before displaying on a screen.

@dmitriim dmitriim force-pushed the issue96-MOODLE_401_STABLE branch 2 times, most recently from 78f7aa5 to bd5ba13 Compare October 23, 2023 07:01
@dmitriim dmitriim marked this pull request as ready for review October 24, 2023 01:41
@dmitriim dmitriim changed the title Issue#96: implement restriction by enrolment methods Issue #96: implement restriction by enrolment methods Oct 24, 2023
@danmarsden danmarsden merged commit 2d0b5f9 into danmarsden:MOODLE_401_STABLE Oct 25, 2023
12 checks passed
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.

Limit recompletion per enrolment method
2 participants