moodle/grade/report
Tim Hunt 9e1fe42150 MDL-40854 fix mod/...:view capabilities
Prior to the fix, if you did not have a capability like mod/page:view,
then you woulds still see the link to the Page activity in the course
section, but when you clicked on it, you would run into a
require_capability error.

It is a principle that we never show users a link to a page they are not
allowed to access, therefore, when users do not have mod/...:view, they
should not see the link on the course page.

This patch implements this in the cm_info class, in a similar way to how
access restrictions by groups works.

It does not assume that the mod/...:view capability exists. If the
capability does not exist, then users are not prevented from seeing the
link.
2013-07-26 11:44:43 +01:00
..
grader Merge branch 'MDL-40626-master' of git://github.com/danpoltawski/moodle 2013-07-22 17:40:03 +02:00
outcomes MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00
overview MDL-37475 core_grade:fixed the handling of show totals 2013-05-08 10:38:20 +12:00
user MDL-40854 fix mod/...:view capabilities 2013-07-26 11:44:43 +01:00
index.php MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
lib.php MDL-40468 libraries: removed usages of get_related_contexts_string() in core 2013-07-19 15:17:50 +08:00
upgrade.txt MDL-40400 Gradebook: get_toggles_html and print_toggle cannot be used anymore 2013-07-03 17:06:59 +08:00