Moodle
  1. Moodle
  2. MDL-18079

Database module doesn't respect mod/data:comment capability when adding comments

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5, 2.0
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Rank:
      31563

      Description

      The Database module doesn't seem to respect the 'mod/data:comment' capability anywhere in it's code (in fact grep'ing for it returns only it's definition in /db/access.php).

      Probably should be checked before printing the link to add a comment in the data_print_comments function (lib.php), and maybe a catch-all require_capability call in comment.php?

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: