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

Create isguestuser() function and fix guest related code

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7
    • 2.0
    • Libraries
    • None
    • MOODLE_17_STABLE
    • 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

              skodak Petr Skoda
              skodak Petr Skoda
              Nobody Nobody
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10