Moodle

CONTEXT_GROUP not inheriting from CONTEXT_COURSE

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.5
  • Component/s: Roles / Access
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Discovered in calendar/event.php

return has_capability('moodle/calendar:manageentries', get_context_instance(CONTEXT_GROUP, $event->groupid));

is returning false for teachers (set to allow by course teacher assignment). This is the only place CONTEXT_GROUP gets used.

Activity

Hide
Petr Škoda (skodak) added a comment -

my +1 to solve this in 2.0 and do not use this context in 1.9.x

Show
Petr Škoda (skodak) added a comment - my +1 to solve this in 2.0 and do not use this context in 1.9.x
Hide
Petr Škoda (skodak) added a comment -

groups contexts removed completely in 1.9.5

Show
Petr Škoda (skodak) added a comment - groups contexts removed completely in 1.9.5

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: