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

When no permission to draw a graph... it would be better to return an ERROR IMAGE rather than ERROR text...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      I am on a page... looking at a users stats...

      http://www.tbshs.herts.sch.uk/moodle/course/user.php?id=1&user=511&mode=stats

      And there is an embedded graph. Which is something like: <img src="http://www.tbshs.herts.sch.uk/moodle/course/report/stats/graph.php?mode=2&course=1&time=32&report=10&userid=511">

      Some users do not have permission to run the graph... and that is fine... but since the source for errors would show something like: <img src"=you do not have permission message.."> it shows an drawable image error.

      Is it better... that if you do not have permission to run "http://www.tbshs.herts.sch.uk/moodle/course/user.php?id=1&user=511&mode=stats" that it returns an IMAGE saying you do not have permission... in the same way that it returns the Graph Image when you do have permission. This means <img src=....> is not ruined.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Oct/07