Skip to content

Makes block more self-contained and fixes some phpcs issues#11

Open
parkeyparker wants to merge 1 commit into
catalyst:masterfrom
SourceCube-Ltd:self-contained
Open

Makes block more self-contained and fixes some phpcs issues#11
parkeyparker wants to merge 1 commit into
catalyst:masterfrom
SourceCube-Ltd:self-contained

Conversation

@parkeyparker

Copy link
Copy Markdown

Various changes to try and make the block more self-contained:

  • Block no longer redirects to /auth/enrolkey/view.php and instead uses notifications to display enrolment changes on the dashboard page itself
  • Adds a configurable block title
  • Displays the block with an error message only to admin users (or those who can configure self enrolment) if auth_enrolkey is disabled and block is added to the dashboard - avoids confusion when adding it and it disappears when edit mode is off
  • Fixed some PHPCS errors

This has only been tested with Moodle 4.1 currently.
Unable to replicate #10.

Block no longer redirects to /auth/enrolkey/view.php and instead uses notifications to display enrolment changes on the dashboard page itself.
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.

1 participant