moodle/grade
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
..
edit MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
export MDL-39535 grade: only display grade errors once 2013-05-07 15:15:37 +08:00
grading Merge branch 'wip-MDL-39748-master' of git://github.com/phalacee/moodle 2013-07-23 14:16:31 +08:00
import MDL-40468 libraries: removed usages of get_related_contexts_string() in core 2013-07-19 15:17:50 +08:00
report MDL-40854 fix mod/...:view capabilities 2013-07-26 11:44:43 +01:00
tests MDL-37475 core_grade:fixed the handling of show totals 2013-05-08 10:38:20 +12:00
externallib.php MDL-31681: Formatting changes to fix indentation 2013-03-25 10:37:14 +08:00
index.php MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
lib.php MDL-40468 libraries: removed usages of get_related_contexts_string() in core 2013-07-19 15:17:50 +08:00
querylib.php MDL-32437 fix invalid gradebook query sql 2012-04-15 14:20:14 +02:00