Moodle

Sticky blocks should be integrated better with other blocks (roles etc)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2, 1.9
  • Fix Version/s: 1.9, 2.0
  • Component/s: Blocks
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

block_pinned could be better re-implemented with a single new column in block_instance, just for increased simplicity alone.

To implement roles in sticky blocks we need to make them have some sort of context. See MDL-9723

About the contexts, it's a bit tricky to think about since the one "instance" appears site-wide within various other contexts, and so may inherit different permissions from the various parent contexts. Do we process all this like a normal block, effectively treating each place it appears as a sort of virtual instance?

Or are pinned blocks an exception to heirarchy rules, with their own context under SYSTEM level?

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment - - edited

pinned blocks now use system context - permissions for them are defined in system context, shared by all pinned blocks

Show
Petr Škoda (skodak) added a comment - - edited pinned blocks now use system context - permissions for them are defined in system context, shared by all pinned blocks
Hide
Petr Škoda (skodak) added a comment -

We can revisit this issue in 2.0 when we start redesigning pagelib, themes and blocks...

Show
Petr Škoda (skodak) added a comment - We can revisit this issue in 2.0 when we start redesigning pagelib, themes and blocks...

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: