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

require_capability should not do an automatic require_login

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Libraries
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      What we need to do:

      1. Review existing scripts and make sure that every call to require_capability is preceeded by an appropriate call to require_login. (Almost all of them are already.)

      2. Take the old code out of require_capability.

      3. Add a note to the release notes.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10