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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Roles / Access
    • Labels:
      None
    • Difficulty:
      Difficult
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

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