Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73964

Update support site/email usage to use new link format and granular access control

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-73964-master
    • Hide

      Prerequisites

      1. A site with multiple users (at least an admin and one other user).
      2. SMTP configured with a mail proxy. For example, you can install MailCatcher and just add 127.0.0.1:1025 to smtphosts setting in {{Site administration > Server > Email > Outgoing mail configuration. }}Still on that page, set No-reply address to a valid email address.

      Checkout the error page

      1. Open two different browsers for the same site
      2. Login as admin in browser 1
      3. Go to Site administration > Server -> Support contact
      4. Set the Support availability to "Available to anyone visiting the site"
      5. Go to browser 2 and make sure you are logged out
      6. Visit <wwwroot>/error/index.php
      7. Verify that below the error, you see a "Contact site support" link above the "Continue" button
      8. Return to browser 1 and set the Support availability to "Limited to authenticated users"
      9. Go back to browser 2 refresh the page
      10. Verify that below the error, you do not see a "Contact site support" link above the "Continue" button{}
      11. Now login and do the step #5
      12. Verify that below the error, you see a "Contact site support" link above the "Continue" button{}

      Checkout the email signoff

      1. Ensure the mail service is running (eg Mailcatcher, by running the command mailcatcher).
      2. Set Support email and set Support availability to "Available to anyone visiting the site" in Site administration > Server > Supportcontact
      3. Logout
      4. Go to login then click the Lost password?
      5. Input the username or email of your non-admin user and press "Search" button
      6. Confirm that you have a new email in MailCatcher for that request
      7. Click on that email and choose HTML tab
      8. Verify that under the admin name at the bottom you see a message with clickable "Contact site support" link
      9. Login as admin
      10. Set the Support availability to "Limited to authenticated users" in Site admin > Server > Support contact
      11. Logout
      12. Go to login then click the Lost password?
      13. You can use username or email and press "Search" button
      14. Confirm that you have a new email in MailCatcher for that request
      15. Click on that email and choose HTML tab
      16. Verify that under the admin name at the bottom you do not see any messages or link to Contact site support

      Check policy page

      1. Login as non admin user
      2. Go to <wwwroot>/admin/tool/policy/index.php?userid=2
      3. Verify that you see "For further assistance:" with a "Contact site support" link below it
      4. As admin, set the Support availability to "Disabled" in Site admin > Server > Support contact
      5. As the non admin user, go to <wwwroot>/admin/tool/policy/index.php?userid=2
      6. Verify that you do not see "For further assistance:" and do not see the Contact site support link on the page

      Check email address change email

      1. Log in as the non admin user
      2. Navigate to your edit profile page and change the email address
      3. Save the changes
      4. Open your Mailcatcher and view the email address change email
      5. Verify you do not see a Contact site support link at the bottom of the email
      6. As admin, set the Support availability to "Available to anyone visiting the site" in Site admin > Server > Support contact
      7. Repeat steps 1-4 above
      8. Verify that you now see the link to Contact site support at the bottom of the email
      Show
      Prerequisites A site with multiple users (at least an admin and one other user). SMTP configured with a mail proxy. For example, you can install MailCatcher and just add 127.0.0.1:1025 to smtphosts setting in {{Site administration > Server > Email > Outgoing mail configuration. }}Still on that page, set No-reply address to a valid email address. Checkout the error page Open two different browsers for the same site Login as admin in browser 1 Go to Site administration > Server -> Support contact Set the Support availability to "Available to anyone visiting the site" Go to browser 2 and make sure you are logged out Visit <wwwroot>/error/index.php Verify that below the error, you see a "Contact site support" link above the "Continue" button Return to browser 1 and set the Support availability to "Limited to authenticated users" Go back to browser 2 refresh the page Verify that below the error, you do not see a "Contact site support" link above the "Continue" button { } Now login and do the step #5 Verify that below the error, you see a "Contact site support" link above the "Continue" button { } Checkout the email signoff Ensure the mail service is running (eg Mailcatcher, by running the command mailcatcher) . Set Support email and set Support availability to "Available to anyone visiting the site" in Site administration > Server > Supportcontact Logout Go to login then click the Lost password? Input the username or email of your non-admin user and press "Search" button Confirm that you have a new email in MailCatcher for that request Click on that email and choose HTML tab Verify that under the admin name at the bottom you see a message with clickable "Contact site support" link Login as admin Set the Support availability to "Limited to authenticated users" in Site admin > Server > Support contact Logout Go to login then click the Lost password? You can use username or email and press "Search" button Confirm that you have a new email in MailCatcher for that request Click on that email and choose HTML tab Verify that under the admin name at the bottom you do not see any messages or link to Contact site support Check policy page Login as non admin user Go to <wwwroot>/admin/tool/policy/index.php?userid=2 Verify that you see "For further assistance:" with a "Contact site support" link below it As admin, set the Support availability to "Disabled" in Site admin > Server > Support contact As the non admin user, go to <wwwroot>/admin/tool/policy/index.php?userid=2 Verify that you do not see "For further assistance:" and do not see the Contact site support link on the page Check email address change email Log in as the non admin user Navigate to your edit profile page and change the email address Save the changes Open your Mailcatcher and view the email address change email Verify you do not see a Contact site support link at the bottom of the email As admin, set the Support availability to "Available to anyone visiting the site" in Site admin > Server > Support contact Repeat steps 1-4 above Verify that you now see the link to Contact site support at the bottom of the email
    • 6
    • Team Hedgehog Sprint 1.1, Team Hedgehog Sprint 1.2

      We need to do a proper audit of supportemail / supportpage usage and update any cases so they use the same behaviour as the footer link. As of MDL-74643, this includes a check for who has permission to see the relevant link.

      Note: The mobile API has already been updated in MDL-74643, and does not require further changes. The age verification / digital minor code does use the information, but the setting to enable that does warn the admin that this is the case, so is handled as expected and I do not think needs any modification.

      Some known examples to be investigated

      • The general error page (as modified in MDL-73935).
      • generate_email_signoff() in lib/moodlelib.php. It could be updated to provide the relevant link with a useful lang string (and not just dump the link with no context).
      • There could be some context provided in one or more new language strings to accompany that, for example the password reset confirmation email could end with "If you did not request this change, please contact support as soon as possible." or similar.
      • There may be others.

        1. address_change_Step5.png
          address_change_Step5.png
          76 kB
        2. adress_change_Step8.png
          adress_change_Step8.png
          87 kB
        3. email_signoff_Step14-16.png
          email_signoff_Step14-16.png
          89 kB
        4. email_signoff_Step6-8.png
          email_signoff_Step6-8.png
          109 kB
        5. error_page_Step10.png
          error_page_Step10.png
          31 kB
        6. error_page_Step12.png
          error_page_Step12.png
          40 kB
        7. error_page_Step7.png
          error_page_Step7.png
          34 kB
        8. policy_page_Step3.png
          policy_page_Step3.png
          51 kB
        9. policy_page_Step6.png
          policy_page_Step6.png
          51 kB

            stevani.andolo@moodle.com Stevani Andolo
            michaelh Michael Hawkins
            Michael Hawkins Michael Hawkins
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 23 minutes
                2d 23m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.