-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
Site admins can only prevent users from accessing to Custom Reports with capabilities but they can't disable the functionality completely.
This improvement is to introduce a setting to allow Site Admins to disable Custom Reports feature completely. I suggest the following:
- Add a new settings page for Report Builder.
Site Administration / Reports / Report Builder / Report Builder settings- Edit: use standard location for feature switches (General > Advanced features)
- Add a new setting: Enable Custom reports ('enablecustomreports'), default = Yes.
- This new setting must be supported in config.php, to allow disabling Custom reports via the config file.
When "Enable custom reports" is not enabled:
- Don't allow access to Custom reports and raise an error in "/reportbuilder/index.php":
"Custom reports are not enabled"- Edit: use standard access denied messages from adminlib, existing exception messages
- Disable scheduled reports