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

require_capability should not do an automatic require_login

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            timhunt Tim Hunt added a comment -

            All missing require_logins done.

            Show
            timhunt Tim Hunt added a comment - All missing require_logins done.
            Hide
            timhunt Tim Hunt added a comment -

            OK. Done.

            Show
            timhunt Tim Hunt added a comment - OK. Done.
            Hide
            skodak Petr Skoda added a comment -

            thanks

            Show
            skodak Petr Skoda added a comment - thanks

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10