Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5017

View access permission not checked in the Dataform view block and resource.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.2
    • 2.6.3
    • Set: Dataform
    • None
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE

    Description

      View access permission not checked in the Dataform view block and resource.

      Possible solution:
      In mod_dataform_dataform::get_content_inline and mod_dataform_dataform::get_content_embedded check that the requested view id exists in the views menu which should contain only views the user can access.

              // Make sure user can access the view
              if (!array_key_exists($viewid, $viewman->views_menu)) {
                  return null;
              }
      

      Attachments

        Activity

          People

            itamart Itamar Tzadok
            itamart Itamar Tzadok
            Itamar Tzadok Itamar Tzadok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/May/14