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

page admin/tool/policy/viewall.php is empty, if you are not logged in

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Login as admin
      2. Access to "Site administration | Users | Privacy and policies | Policy settings"
      3. Set site policy hander to “Policies (tool_policy)”.

      Testing scenario 1

      1. Access to the main page (as authenticated user)
        • CHECK the Policies link is not displayed on the footer
      2. Access to $CFG->wwwroot/admin/tool/policy/viewall.php
        • CHECK that the "There are no policies with an active version." is displayed
      3. Logout
      4. Access to the main page (as guest user)
        • CHECK the Policies link is not displayed on the footer
      5. Access to $CFG->wwwroot/admin/tool/policy/viewall.php
        • CHECK that the "There are no policies with an active version." is displayed

      Testing scenario 2

      1. Login as admin
      2. Create a policy for 'Authenticated users' only and set as active.
      3. Access to the main page (as authenticated user)
        • CHECK the Policies link is displayed on the footer
      4. Click on the footer's Policies link
        • CHECK the summary and content of the created policy is displayed
        • Logout
      5. Access to the main page (as guest user)
        • CHECK the Policies link is displayed on the footer
      6. Click on the footer's Policies link
        • CHECK the summary and content of the created policy is displayed
      Show
      Setup Login as admin Access to "Site administration | Users | Privacy and policies | Policy settings" Set site policy hander to “Policies (tool_policy)”. Testing scenario 1 Access to the main page ( as authenticated user ) CHECK the Policies link is not displayed on the footer Access to $CFG->wwwroot/admin/tool/policy/viewall.php CHECK that the "There are no policies with an active version." is displayed Logout Access to the main page ( as guest user ) CHECK the Policies link is not displayed on the footer Access to $CFG->wwwroot/admin/tool/policy/viewall.php CHECK that the "There are no policies with an active version." is displayed Testing scenario 2 Login as admin Create a policy for 'Authenticated users' only and set as active. Access to the main page ( as authenticated user ) CHECK the Policies link is displayed on the footer Click on the footer's Policies link CHECK the summary and content of the created policy is displayed Logout Access to the main page ( as guest user) CHECK the Policies link is displayed on the footer Click on the footer's Policies link CHECK the summary and content of the created policy is displayed
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-62670-master
    • Sprint:
      GDPR Followup Sprint 1

      Description

      The page ... https://xxx/admin/tool/policy/viewall.php (Policy-Link by the moodle-app) is empty.

      The browser window is empty, if you are not logged in. But you have to confirm it bevor and also it has to be able to see it if you are not logged in (footerlink).

      To reproduce this error, there must exist only one active policy for "Authenticated users". In that case, currently:

      For fixing this:

      • The viewall.php page must display always all the active policies, regardless of the user accessing it. This page is used from the mobile app before the user agrees the policies, so all them have to be shown (even as guest), to guarantee the user reads them from the Moodle app.
      • The "Policies" must be displayed on the footer only when there is at least one active policy. If there are not policies, a message should appear to let the user know that this site has no active policies.

        Attachments

        1. mobile1.jpg
          mobile1.jpg
          19 kB
        2. mobile2.jpg
          mobile2.jpg
          19 kB
        3. Verified_Scenario1.png
          Verified_Scenario1.png
          716 kB
        4. Verified_Scenario 2.png
          Verified_Scenario 2.png
          121 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jul/18

                  Time Tracking

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