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

Deprecate question_has_capability_on and split it in two new functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Currently question_has_capability_on is a bit misleading, since it currently handle too many cases, for example question id as integer, question object that might not contain the question id and a question object just with the context id and createdby attributes.

      Andrew Nicols suggested deprecated that method and split into two new functions one to handle question and other just for the context which ideally could simply receive the context as instance or id.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lameze Simey Lameze
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: