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

Capability for viewing glossary entries

    XMLWordPrintable

Details

    • Any
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • wip-MDL-30482-master
    • Hide

      PLEASE PERFORM THESE STEPS IN ORDER

      1. Login as admin
      2. Enable RSS for the site and the glossaries in the site-wide prefernces
      3. Set an RSS value and number of entries in the glossary settings
      4. Create a glossary with some entries
      5. Turn on the auto-link glossary filter
      6. Create a page with some of the words from the glossary entries in it
      7. Add the Random glossary block
      8. Add the recent activity block
      9. Create a glossary activity on the front page
      10. Log out and check the front page is showing without errors
      11. Allow students read access to the glossary (System -> Users -> Permissions -> Define Roles) [This should already be on by default]
      12. Log in as a student enrolled in the course
      13. Check you can see the glossary in the recent activity block
      14. Check you can see the glossary entries in the recent activity block
      15. Check you can see the random glossary block
      16. Check you can view the glossary in the course
      17. Check you can view the entries in the glossary
      18. Check you can see the RSS feed for the glossary
      19. Check you can see the auto-linked items on the page you created
      20. In a different browser, Login as admin and deny the student access to read the glossary
      21. As a student enrolled in the course
      22. Check you can not see the glossary on the front page
      23. Check you can not see the glossary in the recent activity block
      24. Check you can not see the random glossary block
      25. Check you can not view the entries in the glossary
      26. Check you can not see the RSS feed for the glossary
      27. Check you can not see the auto-linked items on the page you created
      28. Repeat the steps 12-27 for guests as well
      Show
      PLEASE PERFORM THESE STEPS IN ORDER Login as admin Enable RSS for the site and the glossaries in the site-wide prefernces Set an RSS value and number of entries in the glossary settings Create a glossary with some entries Turn on the auto-link glossary filter Create a page with some of the words from the glossary entries in it Add the Random glossary block Add the recent activity block Create a glossary activity on the front page Log out and check the front page is showing without errors Allow students read access to the glossary (System -> Users -> Permissions -> Define Roles) [This should already be on by default] Log in as a student enrolled in the course Check you can see the glossary in the recent activity block Check you can see the glossary entries in the recent activity block Check you can see the random glossary block Check you can view the glossary in the course Check you can view the entries in the glossary Check you can see the RSS feed for the glossary Check you can see the auto-linked items on the page you created In a different browser, Login as admin and deny the student access to read the glossary As a student enrolled in the course Check you can not see the glossary on the front page Check you can not see the glossary in the recent activity block Check you can not see the random glossary block Check you can not view the entries in the glossary Check you can not see the RSS feed for the glossary Check you can not see the auto-linked items on the page you created Repeat the steps 12-27 for guests as well

    Description

      This is a follow-up to MDLQA-1413 and MDL-30376. The lack of a specific 'read' capability for glossary entries complicates access control for RSS feeds. This patch adds a new capability for viewing glossary entries.

      Patch against current master: https://github.com/mackensen/moodle/compare/master...MDL-30482. The new capability is mod/glossary:read (following the convention of mod/glossary:write) and is based on mod/data:readentry.

      Attachments

        Issue Links

          Activity

            People

              phalacee Jason Fowler
              cfulton Charles Fulton
              Ankit Agarwal Ankit Agarwal
              Aparup Banerjee Aparup Banerjee
              Michael de Raadt Michael de Raadt
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12