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

Create isguestuser() function and fix guest related code

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 1.7
    • Libraries
    • None
    • MOODLE_17_STABLE
    • MOODLE_20_STABLE

      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)

            skodak Petr Skoda
            skodak Petr Skoda
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.