Moodle

some small changes needed to accesslib functions to make quiz report capabilities show up properly in roles and permissions UI

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not a bug
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: Quiz, Roles / Access
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE

Description

Need to make an adjustment to which capabilities are shown in activity module context. Instead of just showing context independent capabilities and the capabilities that are marked as being part of component 'mod/{modname}'. We are now also showing capabilities with component 'mod/{modname}/*' So now capabilities marked as component mod/quiz/report/overview and mod/quiz/report/analysis show up in the permissions override screen for the quiz module.

Also told accesslib where to look for strings related to quiz report capabilities.

Issue Links

Activity

Hide
Jamie Pratt added a comment -

Attaching a small patch that fixes this issue.

Show
Jamie Pratt added a comment - Attaching a small patch that fixes this issue.
Hide
Jamie Pratt added a comment -

Linking to MDL-14193 since although we have added the possibility to allow quiz report writers to use an access.php file in their plug in to define new capabilities there capabilities will not show up properly in the roles and capability UI unless this issue is addressed.

Show
Jamie Pratt added a comment - Linking to MDL-14193 since although we have added the possibility to allow quiz report writers to use an access.php file in their plug in to define new capabilities there capabilities will not show up properly in the roles and capability UI unless this issue is addressed.
Hide
Jamie Pratt added a comment -

This is a similar issue to MDL-11421 "new function in mod/modname/lib.php 'modname_get_relevant_capabilites'" and the proposed change to the roles and permissions UI proposed there might help to fix at least part of this problem. So linking.

Show
Jamie Pratt added a comment - This is a similar issue to MDL-11421 "new function in mod/modname/lib.php 'modname_get_relevant_capabilites'" and the proposed change to the roles and permissions UI proposed there might help to fix at least part of this problem. So linking.
Hide
Jamie Pratt added a comment -

The patch attached to this issue no longer really applies since we have decided we should call the quiz report 'component' quizreport/{reportname} in a similar way to the gradebook reports and not mod/quiz/report/{reportname} as I was putting in the component field of the capabilities record in the patch. Removing the patch.

Show
Jamie Pratt added a comment - The patch attached to this issue no longer really applies since we have decided we should call the quiz report 'component' quizreport/{reportname} in a similar way to the gradebook reports and not mod/quiz/report/{reportname} as I was putting in the component field of the capabilities record in the patch. Removing the patch.
Hide
Petr Škoda (skodak) added a comment -

I guess this can be closed now, right?
please see the linked bug

thanks for the report

Show
Petr Škoda (skodak) added a comment - I guess this can be closed now, right? please see the linked bug thanks for the report
Hide
Tim Hunt added a comment -

Yes, this is no longer relevant. Resolving.

Show
Tim Hunt added a comment - Yes, this is no longer relevant. Resolving.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: