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

Improvement: Enhance smart menu restrictions for authenticated and guest roles, resolves #571 #640

Merged
merged 2 commits into from
May 11, 2024

Conversation

prasanna-lmsace
Copy link
Contributor

No description provided.

@prasanna-lmsace prasanna-lmsace marked this pull request as ready for review April 26, 2024 09:36
@abias abias force-pushed the role-restriction-fix branch from e68c840 to 4335db3 Compare May 11, 2024 11:57
abias
abias previously approved these changes May 11, 2024
Copy link
Member

@abias abias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @prasanna-lmsace ,

many thanks for working on this improvement!

Review

Following https://github.com/moodle-an-hochschulen/moodle-plugin-maintaining/wiki/Check-list-for-peer-reviewing-patches-and-pull-requests

Documentation

  • [Y] Commit Message understandable and issue referenced (via resolves keyword)
  • [Y] Patch author correct
  • [N] CHANGES.md appended
  • [-] README.md appended
  • [-] Credits appended
  • [Y] Appropriate Comment quantity
  • [Y] Successful Moodle PHPDoc check

version.php

  • [Y] Checked if $plugin->version increment necessary (and increment done if necessary)
  • [Y] $plugin->release untouched

lib.php

  • [-] Only necessary functions

Languages

  • [-] Only english strings
  • [-] Necessary magic strings added (e.g. capabilities)

Automated tests

  • [Y] New functionality covered
  • [Y] No failing steps or scenarios

Mustache templates

  • [-] Examle context exists

CSS and styles.css

  • [-] Bootstrap styles used if possible

Duplicated code

  • [-] Duplicated code is marked properly

Github action

  • [Y] All green

Commit history and scope

  • [Y] Already single commit
  • [Y] Focus on single purpose
  • [Y] No surplus files

Additional aspects for Boost Union

  • [-] No usage of $theme->settings
  • [-] Usage of isset() checks when processing plugin settings in renderer / output code
  • [-] Usage of admin_setting_configselect instead of admin_setting_configcheckbox
  • [-] Modified mustache templates properly marked and .upstream template in place

Review result

I rebased your branch onto latest master and made some small refinements. I especially restricted the support for the guest role to the "real" guest role (instead of all roles with the guest archetype) and added support for the visitor role (which was not covered yet). I will merge the branch as soon as the tests are green again.

@abias abias force-pushed the role-restriction-fix branch from 4335db3 to 44111b2 Compare May 11, 2024 16:17
@abias abias merged commit 909bbab into moodle-an-hochschulen:master May 11, 2024
6 checks passed
abias pushed a commit that referenced this pull request May 13, 2024
abias pushed a commit that referenced this pull request May 13, 2024
abias pushed a commit that referenced this pull request May 13, 2024
@prasanna-lmsace prasanna-lmsace deleted the role-restriction-fix branch May 20, 2024 06:41
detomon pushed a commit to detomon/moodle-theme_boost_union that referenced this pull request Aug 26, 2024
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.

2 participants