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

Change policy agreements once the policies has been accepted

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      1. Login as admin.
      2. Access to "Site administration | Privacy and policies | Policy settings".
      3. Set “Policies (tool_policy)” as Site policy hander.
      4. Create 2 policies and set them as active.
      5. Access to "Site administration | Users | Permissions | Define roles".
      6. Edit the Manager role.
      7. Make sure the capability tool/policy:acceptbehalf is allowed.

      Testing scenario 1

      1. Login as student.
      2. Read all the policies (2), click the next button and accept them.
        • CHECK that after accepting the policies, you're redirected to main site page.
      3. Access to your profile and click over "Policies and agreements".
        • CHECK that the Agreed ticks are not a link.
        • CHECK that the following text appears: "For questions regarding the policies please contact the Data Protection Officer".
      4. Access to the Site home page.
      5. Access to $CFG->wwwroot/admin/tool/policy/index.php.
        • CHECK that the page is redirected to the "Policies and agreements" user page.

      Testing scenario 2

      1. Login as manager.
      2. Access to "Site administration | Privacy and policies | User agreements".
      3. Click over any of the red crosses to accept a user policy. 
        • CHECK that the "Consent details" modal window is displayed.
      4. Click on the "I agree to the policy" button.
        • CHECK that the policy has been agreed. That means that now this user policy has to appear with a blue tick and the text "Agreed on behalf of, click to revoke "XXX"" (where XXX is the policy name).
      5. Click on the blue tick to revoke the consent.
        • CHECK that the "Revoke details" modal window is displayed.
      6. Write some text in the remarks field.
      7. Click on the "I revoke the policy" button.
        • CHECK that the policy has been revoked. That means that now this user policy has to appear with a red cross and the text "Not agreed, click to agree to "XXX"" (where XXX is the policy name).
      8. Click over any of the red crosses in the "Overall" column.
        • CHECK that the "Consent details" modal window is displayed.
      9. Click on the "I agree to the policy" button.
        • CHECK that all the policies for this user have been agreed. That means that now they appear with a blue tick and the text "Agreed on behalf of, click to revoke "XXX"" (where XXX is each policy name).
      10. Click over the blue tick in the "Overall" column to revoke all the policies of this user.
        • CHECK that the "Revoke details" modal window is displayed.
      11. Click on the "I revoke the policy" button.
        • CHECK that all the policies for this user have been revoked. That means that now they appear with a red cross and the text "Not agreed, click to agree to "XXX"" (where XXX is each policy name).
      12. Click over any of the "x of 2" links in the "Overall" column.
        • CHECK that the text "For questions regarding the policies please contact the Data Protection Officer" is not displayed.
      13. Access to the Site home page.
      14. Access to $CFG->wwwroot/admin/tool/policy/index.php.
        • CHECK that the page is not redirected and you can revoke some of the policies.
      Show
      Setup Login as admin. Access to "Site administration | Privacy and policies | Policy settings". Set “Policies (tool_policy)” as Site policy hander. Create 2 policies and set them as active. Access to "Site administration | Users | Permissions | Define roles". Edit the Manager role. Make sure the capability tool/policy:acceptbehalf is allowed. Testing scenario 1 Login as student. Read all the policies (2), click the next button and accept them. CHECK that after accepting the policies, you're redirected to main site page. Access to your profile and click over "Policies and agreements". CHECK that the Agreed ticks are not a link. CHECK that the following text appears: "For questions regarding the policies please contact the Data Protection Officer". Access to the Site home page. Access to $CFG->wwwroot/admin/tool/policy/index.php. CHECK that the page is redirected to the "Policies and agreements" user page. Testing scenario 2 Login as manager. Access to "Site administration | Privacy and policies | User agreements". Click over any of the red crosses to accept a user policy.  CHECK that the "Consent details" modal window is displayed. Click on the "I agree to the policy" button. CHECK that the policy has been agreed. That means that now this user policy has to appear with a blue tick and the text "Agreed on behalf of, click to revoke "XXX"" (where XXX is the policy name). Click on the blue tick to revoke the consent. CHECK that the "Revoke details" modal window is displayed. Write some text in the remarks field. Click on the "I revoke the policy" button. CHECK that the policy has been revoked. That means that now this user policy has to appear with a red cross and the text "Not agreed, click to agree to "XXX"" (where XXX is the policy name). Click over any of the red crosses in the "Overall" column. CHECK that the "Consent details" modal window is displayed. Click on the "I agree to the policy" button. CHECK that all the policies for this user have been agreed. That means that now they appear with a blue tick and the text "Agreed on behalf of, click to revoke "XXX"" (where XXX is each policy name). Click over the blue tick in the "Overall" column to revoke all the policies of this user. CHECK that the "Revoke details" modal window is displayed. Click on the "I revoke the policy" button. CHECK that all the policies for this user have been revoked. That means that now they appear with a red cross and the text "Not agreed, click to agree to "XXX"" (where XXX is each policy name). Click over any of the "x of 2" links in the "Overall" column. CHECK that the text "For questions regarding the policies please contact the Data Protection Officer" is not displayed. Access to the Site home page. Access to $CFG->wwwroot/admin/tool/policy/index.php. CHECK that the page is not redirected and you can revoke some of the policies.
    • Workaround:
      Hide

      Each user can access manually (that is writing the URL) to http://yourmoodleurl//admin/tool/policy/index.php for viewing and changing his/her agreements.

      Show
      Each user can access manually (that is writing the URL) to http://yourmoodleurl//admin/tool/policy/index.php  for viewing and changing his/her agreements.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62062-master

      Description

      Eva Karall has posted the following comment to https://moodle.org/plugins/tool_policy:

      Will there be a possibility to opt out (disagree) again from a policy? I cannot find anything about it. Thanks.

       

      We should add a link in the profile to http://yourmoodleurl//admin/tool/policy/index.php for let him/her change the agreements.

        Attachments

        1. 1.PNG
          1.PNG
          88 kB
        2. 2.PNG
          2.PNG
          171 kB
        3. cantrevokemessage.png
          cantrevokemessage.png
          51 kB
        4. howtorevoke.png
          howtorevoke.png
          34 kB
        5. reviewmyconsent.png
          reviewmyconsent.png
          49 kB
        6. revokepage.png
          revokepage.png
          17 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 34 minutes
                  34m