moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
55 stars 49 forks source link

Display footer block regions on home page for non-logged-in users #660

Open Sebbsen opened 1 month ago

Sebbsen commented 1 month ago

Describe the bug The block region footer is currently only visible to logged-in users. There is a request to enable the visibility of these blocks on the home page for non-logged-in users as well.

To Reproduce Steps to reproduce the behavior:

  1. Enable additional block regions for 'frontpage' layout (Footer)
  2. Add Blocks to footer regions
  3. Logout
  4. Observe that the blocks are not visible.

Expected behavior It is expected that the footer block regions blocks should be configurable to be visible on the home page for non-logged-in users, similar to how they are visible for logged-in users.

Screenshots logged-in user

Screenshot 2024-05-19 at 12 35 58

non-logged-in user

Screenshot 2024-05-19 at 12 35 38
taowang1993 commented 1 month ago

Other blocks have the same issue, even after adding "Guest" to permissions.

whuml commented 2 weeks ago

Hallo @Sebbsen

as I tried to reproduce your Issue: at the Boost Unions description for "Additional block regions" I found

"... As soon as an additional block region is enabled, it is visible for all authenticated users ... But there are also theme/boost_union:viewregion and theme/boost_union:editregion capabilities which allow you to fine-tune the usage of each block region according to your needs."

This is what I tested then. I adjusted the capability setting for my specific start page role setting. For example changed "theme/boost_union:viewregionfootercenter" to "allow" for Guests - et voila - my Block at that region was visible for not logged in Guests.

At that stage I would say that there is no bug - it works as described :-)

Pls try and send me your feedback.

Brgds Wolfgang