MDL-40863 feedback and LTI mods need get_extra_capabilities fn

Since moodle/site:accessallgroups is relevant to how them.
This commit is contained in:
Tim Hunt
2013-07-26 10:16:54 +01:00
parent f171a8c06e
commit 944e90bd6d
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -38,6 +38,15 @@ define('FEEDBACK_RESETFORM_DROP', 'feedback_drop_feedback_');
define('FEEDBACK_MAX_PIX_LENGTH', '400'); //max. Breite des grafischen Balkens in der Auswertung
define('FEEDBACK_DEFAULT_PAGE_COUNT', 20);
/**
* Returns all other caps used in module.
*
* @return array
*/
function feedback_get_extra_capabilities() {
return array('moodle/site:accessallgroups');
}
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
+9
View File
@@ -49,6 +49,15 @@
defined('MOODLE_INTERNAL') || die;
/**
* Returns all other caps used in module.
*
* @return array
*/
function lti_get_extra_capabilities() {
return array('moodle/site:accessallgroups');
}
/**
* List of features supported in URL module
* @param string $feature FEATURE_xx constant for requested feature