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

Create isguestuser() function and fix guest related code

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      see: http://moodle.org/mod/forum/discuss.php?d=59286

      1/ add new standard function isguestuser() - use it where we deal with real guest user ( replaces $user->username == 'guest')
      2/ review the use of 'moodle/legacy:guest' - replace some with isguestuser(), add needed capabilities or keep as is
      3/ remove isguest() - use isguestuser(), add missing capabilities OR in some places use has_capability('moodle/legacy:guest', $context, NULL, false)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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