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

Setting defaultfrontpageroleid to none results in nonsense site news message for logged-in users

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0
    • 1.9
    • Roles / Access
    • None
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE
    • Difficult

      Steps to reproduce:

      1. Set frontpage to news items, frontpageloggedin to news items and defaultfrontpageroleid to none in Administration > Front Page > Front Page settings
      2. Logout and view site news items
      3. Login as a student (or other non-admin user)

      The student sees the following message:

      Subject (hidden)
      Author (hidden)
      This post cannot be viewed by you, probably because you have not posted in the discussion yet.

      This is obviously nonsense, as students can't post in the site news forum.

      Workarounds:

      Either:
      Override the front page role of authenticated user and set mod/forum:viewdiscussion to allow

      Or:
      Set defaultfrontpageroleid to student

            skodak Petr Skoda
            tsala Helen Foster
            Helen Foster Helen Foster
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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