moodle.git
9 years agoMerge branch 'MDL-40902_master' of https://github.com/nadavkav/moodle
Sam Hemelryk [Mon, 29 Jul 2013 22:36:49 +0000 (10:36 +1200)]
Merge branch 'MDL-40902_master' of https://github.com/nadavkav/moodle

9 years agoMerge branch 'MDL-35053' of git://github.com/timhunt/moodle
Sam Hemelryk [Mon, 29 Jul 2013 22:21:38 +0000 (10:21 +1200)]
Merge branch 'MDL-35053' of git://github.com/timhunt/moodle

9 years agoMerge branch 'w31_MDL-39915_m26_tests' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 29 Jul 2013 22:19:41 +0000 (10:19 +1200)]
Merge branch 'w31_MDL-39915_m26_tests' of https://github.com/skodak/moodle

9 years agoNOBUG fixed whitespace
Sam Hemelryk [Mon, 29 Jul 2013 22:08:51 +0000 (10:08 +1200)]
NOBUG fixed whitespace

9 years agoMerge branch 'MDL-40746_master' of git://github.com/grabs/moodle
Sam Hemelryk [Mon, 29 Jul 2013 21:40:40 +0000 (09:40 +1200)]
Merge branch 'MDL-40746_master' of git://github.com/grabs/moodle

9 years agoMerge branch 'wip-MDL-40897-master' of git://github.com/marinaglancy/moodle
Sam Hemelryk [Mon, 29 Jul 2013 21:39:03 +0000 (09:39 +1200)]
Merge branch 'wip-MDL-40897-master' of git://github.com/marinaglancy/moodle

9 years agoMerge branch 'w31_MDL-39786_m26_metarole' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 29 Jul 2013 21:33:56 +0000 (09:33 +1200)]
Merge branch 'w31_MDL-39786_m26_metarole' of https://github.com/skodak/moodle

9 years agoMDL-40615 Repository: Updated Amazon S3 library
Frederic Massart [Fri, 19 Jul 2013 08:02:56 +0000 (16:02 +0800)]
MDL-40615 Repository: Updated Amazon S3 library

Fixed insecure use of CURLOPT_SSL_VERIFYHOST

9 years agoMerge branch 'MDL-39461_dev' of https://github.com/totara/openbadges
Sam Hemelryk [Mon, 29 Jul 2013 20:59:58 +0000 (08:59 +1200)]
Merge branch 'MDL-39461_dev' of https://github.com/totara/openbadges

9 years agoMerge branch 'MDL-38759-master' of https://github.com/mackensen/moodle
Sam Hemelryk [Mon, 29 Jul 2013 20:58:14 +0000 (08:58 +1200)]
Merge branch 'MDL-38759-master' of https://github.com/mackensen/moodle

9 years agoMerge branch 'MDL-40678-m' of git://github.com/andrewnicols/moodle
Sam Hemelryk [Mon, 29 Jul 2013 20:55:35 +0000 (08:55 +1200)]
Merge branch 'MDL-40678-m' of git://github.com/andrewnicols/moodle

9 years agoMerge branch 'wip-MDL-40660-master' of git://github.com/phalacee/moodle
Sam Hemelryk [Mon, 29 Jul 2013 20:47:34 +0000 (08:47 +1200)]
Merge branch 'wip-MDL-40660-master' of git://github.com/phalacee/moodle

9 years agoMerge branch 'w31_MDL-40900_m26_32unzip' of https://github.com/skodak/moodle
Dan Poltawski [Mon, 29 Jul 2013 08:56:40 +0000 (16:56 +0800)]
Merge branch 'w31_MDL-40900_m26_32unzip' of https://github.com/skodak/moodle

9 years agoMerge branch 'w31_MDL-40887_m26_minify' of https://github.com/skodak/moodle
Dan Poltawski [Mon, 29 Jul 2013 08:49:39 +0000 (16:49 +0800)]
Merge branch 'w31_MDL-40887_m26_minify' of https://github.com/skodak/moodle

9 years agoMerge branch 'MDL-39404' of git://github.com/jmvedrine/moodle
Dan Poltawski [Mon, 29 Jul 2013 08:29:59 +0000 (16:29 +0800)]
Merge branch 'MDL-39404' of git://github.com/jmvedrine/moodle

9 years agoMDL-40887 import latest minify 2.1.7
Petr Škoda [Fri, 26 Jul 2013 14:42:40 +0000 (16:42 +0200)]
MDL-40887 import latest minify 2.1.7

9 years agoMerge branch 'wip-MDL-40847-m26' of git://github.com/samhemelryk/moodle
Dan Poltawski [Mon, 29 Jul 2013 07:28:17 +0000 (15:28 +0800)]
Merge branch 'wip-MDL-40847-m26' of git://github.com/samhemelryk/moodle

9 years agoMerge branch 'MDL-40867' of git://github.com/timhunt/moodle
Dan Poltawski [Mon, 29 Jul 2013 07:23:42 +0000 (15:23 +0800)]
Merge branch 'MDL-40867' of git://github.com/timhunt/moodle

9 years agoMerge branch 'MDL-40618_restore_get_questions' of https://github.com/mr-russ/moodle
Dan Poltawski [Mon, 29 Jul 2013 06:14:58 +0000 (14:14 +0800)]
Merge branch 'MDL-40618_restore_get_questions' of https://github.com/mr-russ/moodle

9 years agoMerge branch 'MDL-40323-master' of https://github.com/mackensen/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:59:55 +0000 (13:59 +0800)]
Merge branch 'MDL-40323-master' of https://github.com/mackensen/moodle

9 years agoMerge branch 'MDL-40857' of git://github.com/timhunt/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:55:25 +0000 (13:55 +0800)]
Merge branch 'MDL-40857' of git://github.com/timhunt/moodle

9 years agoMerge branch 'wip-MDL-40842-m26' of git://github.com/samhemelryk/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:48:19 +0000 (13:48 +0800)]
Merge branch 'wip-MDL-40842-m26' of git://github.com/samhemelryk/moodle

9 years agoMerge branch 'MDL-39359_master' of https://github.com/pauln/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:45:50 +0000 (13:45 +0800)]
Merge branch 'MDL-39359_master' of https://github.com/pauln/moodle

9 years agoMDL-40775 feeback: remove uncessary header
Dan Poltawski [Mon, 29 Jul 2013 05:29:28 +0000 (13:29 +0800)]
MDL-40775 feeback: remove uncessary header

9 years agoMerge branch 'MDL-40775_master' of git://github.com/grabs/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:28:22 +0000 (13:28 +0800)]
Merge branch 'MDL-40775_master' of git://github.com/grabs/moodle

9 years agoMerge branch 'wip-MDL-29731-master' of git://github.com/marinaglancy/moodle
Dan Poltawski [Mon, 29 Jul 2013 05:20:59 +0000 (13:20 +0800)]
Merge branch 'wip-MDL-29731-master' of git://github.com/marinaglancy/moodle

9 years agoMerge branch 'MDL-36399' of git://github.com/timhunt/moodle
Dan Poltawski [Mon, 29 Jul 2013 04:40:05 +0000 (12:40 +0800)]
Merge branch 'MDL-36399' of git://github.com/timhunt/moodle

9 years agoMerge branch 'MDL-40547' of https://github.com/Lightwork-Marking/moodle
Dan Poltawski [Mon, 29 Jul 2013 02:41:54 +0000 (10:41 +0800)]
Merge branch 'MDL-40547' of https://github.com/Lightwork-Marking/moodle

9 years agoMerge branch 'MDL-40863' of git://github.com/timhunt/moodle
Dan Poltawski [Mon, 29 Jul 2013 02:09:45 +0000 (10:09 +0800)]
Merge branch 'MDL-40863' of git://github.com/timhunt/moodle

9 years agoMDL-40660 - HTML Editor - Fix the width when toggling TinyMCE toolbars
Jason Fowler [Mon, 15 Jul 2013 05:26:11 +0000 (13:26 +0800)]
MDL-40660 - HTML Editor - Fix the width when toggling TinyMCE toolbars

9 years agoMerge branch 'w31_MDL-11270_m26_nvarcharmax' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 29 Jul 2013 01:05:07 +0000 (13:05 +1200)]
Merge branch 'w31_MDL-11270_m26_nvarcharmax' of https://github.com/skodak/moodle

9 years agoMerge branch 'MDL-40878' of git://github.com/timhunt/moodle
Sam Hemelryk [Mon, 29 Jul 2013 00:54:31 +0000 (12:54 +1200)]
Merge branch 'MDL-40878' of git://github.com/timhunt/moodle

9 years agoMerge branch 'w31_MDL-40891_m26_mkdirrace' of https://github.com/skodak/moodle
Sam Hemelryk [Sun, 28 Jul 2013 23:53:02 +0000 (11:53 +1200)]
Merge branch 'w31_MDL-40891_m26_mkdirrace' of https://github.com/skodak/moodle

9 years agoMerge branch 'MDL-40727-master' of git://github.com/damyon/moodle
Sam Hemelryk [Sun, 28 Jul 2013 23:50:00 +0000 (11:50 +1200)]
Merge branch 'MDL-40727-master' of git://github.com/damyon/moodle

9 years agoMerge branch 'MDL-40854' of git://github.com/timhunt/moodle
Sam Hemelryk [Sun, 28 Jul 2013 23:01:57 +0000 (11:01 +1200)]
Merge branch 'MDL-40854' of git://github.com/timhunt/moodle

9 years agoMerge branch 'MDL-40005_lti_headers' of git://github.com/moodlerooms/moodle
Sam Hemelryk [Sun, 28 Jul 2013 22:53:05 +0000 (10:53 +1200)]
Merge branch 'MDL-40005_lti_headers' of git://github.com/moodlerooms/moodle

9 years agoMDL-40842 behat: improved exception + debugging detection
Sam Hemelryk [Tue, 23 Jul 2013 23:18:19 +0000 (11:18 +1200)]
MDL-40842 behat: improved exception + debugging detection

9 years agoMerge branch 'MDL-40806-m' of git://github.com/andrewnicols/moodle
Sam Hemelryk [Sun, 28 Jul 2013 22:49:40 +0000 (10:49 +1200)]
Merge branch 'MDL-40806-m' of git://github.com/andrewnicols/moodle

9 years agoMDL-40547 added marking allocation and workflow to
Paul Charsley [Mon, 15 Jul 2013 02:18:43 +0000 (14:18 +1200)]
MDL-40547 added marking allocation and workflow to
mod_assign_get_assignments

9 years agoMDL-40847 moodlelib: coding style + phpdoc clean up
Sam Hemelryk [Wed, 24 Jul 2013 04:44:07 +0000 (16:44 +1200)]
MDL-40847 moodlelib: coding style + phpdoc clean up

9 years agoMDL-40902 - Align breadcrumbs to the right in RTL mode (theme/clean, bootstrapbase)
Nadav Kavalerchik [Sun, 28 Jul 2013 20:21:00 +0000 (23:21 +0300)]
MDL-40902 - Align breadcrumbs to the right in RTL mode (theme/clean, bootstrapbase)

9 years agoMDL-39915 cleanup core_statslib_testcase
Petr Škoda [Sun, 28 Jul 2013 13:36:26 +0000 (15:36 +0200)]
MDL-39915 cleanup core_statslib_testcase

9 years agoMDL-39915 fix core_navigationlib_testcase regression
Petr Škoda [Sun, 28 Jul 2013 13:29:33 +0000 (15:29 +0200)]
MDL-39915 fix core_navigationlib_testcase regression

9 years agoMDL-39915 cleanup core_filterlib_testcase
Petr Škoda [Sun, 28 Jul 2013 13:17:57 +0000 (15:17 +0200)]
MDL-39915 cleanup core_filterlib_testcase

9 years agoMDL-39915 cleanup core_weblib_testcase
Petr Škoda [Sun, 28 Jul 2013 13:06:23 +0000 (15:06 +0200)]
MDL-39915 cleanup core_weblib_testcase

9 years agoMDL-39915 cleanup core_upgradelib_testcase
Petr Škoda [Sun, 28 Jul 2013 12:59:03 +0000 (14:59 +0200)]
MDL-39915 cleanup core_upgradelib_testcase

9 years agoMDL-39915 cleanup core_text_testcase
Petr Škoda [Sun, 28 Jul 2013 12:53:44 +0000 (14:53 +0200)]
MDL-39915 cleanup core_text_testcase

9 years agoMDL-39915 cleanup core_string_manager_testcase
Petr Škoda [Sun, 28 Jul 2013 12:49:44 +0000 (14:49 +0200)]
MDL-39915 cleanup core_string_manager_testcase

9 years agoMDL-39915 cleanup core_setuplib_testcase
Petr Škoda [Sun, 28 Jul 2013 12:47:02 +0000 (14:47 +0200)]
MDL-39915 cleanup core_setuplib_testcase

9 years agoMDL-39915 cleanup core_rsslib_testcase
Petr Škoda [Sun, 28 Jul 2013 12:44:43 +0000 (14:44 +0200)]
MDL-39915 cleanup core_rsslib_testcase

9 years agoMDL-39915 cleanup core_questionlib_testcase
Petr Škoda [Sun, 28 Jul 2013 12:39:16 +0000 (14:39 +0200)]
MDL-39915 cleanup core_questionlib_testcase

9 years agoMDL-39915 cleanup core_pluginlib testcases
Petr Škoda [Sat, 27 Jul 2013 22:14:14 +0000 (00:14 +0200)]
MDL-39915 cleanup core_pluginlib testcases

9 years agoMDL-40900 do not use 32bit unsigned integers
Petr Škoda [Sun, 28 Jul 2013 11:10:57 +0000 (13:10 +0200)]
MDL-40900 do not use 32bit unsigned integers

32bit PHP and any Windows PHP breaks otherwise.

9 years agoMDL-40897 avoid extra DB queries in groups_get_activity_groupmode()
Marina Glancy [Sun, 28 Jul 2013 08:47:57 +0000 (18:47 +1000)]
MDL-40897 avoid extra DB queries in groups_get_activity_groupmode()

9 years agoMDL-39915 cleanup core_outputrequirementslib_testcase
Petr Škoda [Sat, 27 Jul 2013 21:57:33 +0000 (23:57 +0200)]
MDL-39915 cleanup core_outputrequirementslib_testcase

9 years agoMDL-39915 cleanup outputlib testcases
Petr Škoda [Sat, 27 Jul 2013 21:56:05 +0000 (23:56 +0200)]
MDL-39915 cleanup outputlib testcases

9 years agoMDL-39915 cleanup core_outputcomponents_testcase
Petr Škoda [Sat, 27 Jul 2013 21:37:29 +0000 (23:37 +0200)]
MDL-39915 cleanup core_outputcomponents_testcase

9 years agoMDL-39915 cleanup core_moodlelib_testcase
Petr Škoda [Sat, 27 Jul 2013 19:41:03 +0000 (21:41 +0200)]
MDL-39915 cleanup core_moodlelib_testcase

9 years agoMDL-39915 cleanup core_modinfolib_testcase
Petr Škoda [Sat, 27 Jul 2013 18:28:37 +0000 (20:28 +0200)]
MDL-39915 cleanup core_modinfolib_testcase

9 years agoMDL-39915 cleanup core_messagelib_testcase
Petr Škoda [Sat, 27 Jul 2013 17:39:47 +0000 (19:39 +0200)]
MDL-39915 cleanup core_messagelib_testcase

9 years agoMDL-39915 cleanup core_medialib_testcase
Petr Škoda [Sat, 27 Jul 2013 17:21:49 +0000 (19:21 +0200)]
MDL-39915 cleanup core_medialib_testcase

9 years agoMDL-39915 cleanup core_mathslib_testcase
Petr Škoda [Sat, 27 Jul 2013 17:07:40 +0000 (19:07 +0200)]
MDL-39915 cleanup core_mathslib_testcase

9 years agoMDL-39915 cleanup core_markdown_testcase
Petr Škoda [Sat, 27 Jul 2013 16:56:25 +0000 (18:56 +0200)]
MDL-39915 cleanup core_markdown_testcase

9 years agoMDL-39915 cleanup core_html_writer_testcase
Petr Škoda [Sat, 27 Jul 2013 16:55:15 +0000 (18:55 +0200)]
MDL-39915 cleanup core_html_writer_testcase

9 years agoMDL-39915 cleanup core_htmlpurifier_testcase
Petr Škoda [Sat, 27 Jul 2013 16:53:12 +0000 (18:53 +0200)]
MDL-39915 cleanup core_htmlpurifier_testcase

9 years agoMDL-39915 cleanup core_html2text_testcase
Petr Škoda [Sat, 27 Jul 2013 16:50:42 +0000 (18:50 +0200)]
MDL-39915 cleanup core_html2text_testcase

9 years agoMDL-39915 cleanup core_grouplib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:48:18 +0000 (18:48 +0200)]
MDL-39915 cleanup core_grouplib_testcase

9 years agoMDL-39915 cleanup core_gradelib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:39:33 +0000 (18:39 +0200)]
MDL-39915 cleanup core_gradelib_testcase

9 years agoMDL-39915 cleanup core_formslib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:38:34 +0000 (18:38 +0200)]
MDL-39915 cleanup core_formslib_testcase

9 years agoMDL-39915 better not touch filter tests, just minor cleanup
Petr Škoda [Sat, 27 Jul 2013 16:33:17 +0000 (18:33 +0200)]
MDL-39915 better not touch filter tests, just minor cleanup

9 years agoMDL-39915 cleanup core_filelib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:26:32 +0000 (18:26 +0200)]
MDL-39915 cleanup core_filelib_testcase

9 years agoMDL-39915 cleanup core_externallib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:18:59 +0000 (18:18 +0200)]
MDL-39915 cleanup core_externallib_testcase

9 years agoMDL-39915 cleanup core_eventslib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:11:58 +0000 (18:11 +0200)]
MDL-39915 cleanup core_eventslib_testcase

9 years agoMDL-39915 cleanup core_event_testcase
Petr Škoda [Sat, 27 Jul 2013 16:06:55 +0000 (18:06 +0200)]
MDL-39915 cleanup core_event_testcase

9 years agoMDL-39915 cleanup core_environment_testcase
Petr Škoda [Sat, 27 Jul 2013 16:01:17 +0000 (18:01 +0200)]
MDL-39915 cleanup core_environment_testcase

9 years agoMDL-39915 cleanup core_datalib_testcase
Petr Škoda [Sat, 27 Jul 2013 16:00:15 +0000 (18:00 +0200)]
MDL-39915 cleanup core_datalib_testcase

9 years agoMDL-39915 cleanup core_csvclass_testcase
Petr Škoda [Sat, 27 Jul 2013 12:04:13 +0000 (14:04 +0200)]
MDL-39915 cleanup core_csvclass_testcase

9 years agoMDL-39915 cleanup core_csslib_testcase
Petr Škoda [Sat, 27 Jul 2013 11:59:56 +0000 (13:59 +0200)]
MDL-39915 cleanup core_csslib_testcase

9 years agoMDL-39915 cleanup core_coursecatlib_testcase
Petr Škoda [Sat, 27 Jul 2013 11:28:33 +0000 (13:28 +0200)]
MDL-39915 cleanup core_coursecatlib_testcase

9 years agoMDL-39915 cleanup core_configonlylib_testcase
Petr Škoda [Sat, 27 Jul 2013 11:14:41 +0000 (13:14 +0200)]
MDL-39915 cleanup core_configonlylib_testcase

9 years agoMDL-39915 cleanup core_conditionlib_testcase
Petr Škoda [Sat, 27 Jul 2013 11:11:36 +0000 (13:11 +0200)]
MDL-39915 cleanup core_conditionlib_testcase

9 years agoMDL-39915 cleanup core_componentlib_testcase
Petr Škoda [Sat, 27 Jul 2013 10:58:02 +0000 (12:58 +0200)]
MDL-39915 cleanup core_componentlib_testcase

9 years agoMDL-39915 cleanup core_component_testcase
Petr Škoda [Sat, 27 Jul 2013 10:52:37 +0000 (12:52 +0200)]
MDL-39915 cleanup core_component_testcase

9 years agoMDL-39915 cleanup core_completionlib_testcase
Petr Škoda [Sat, 27 Jul 2013 10:50:21 +0000 (12:50 +0200)]
MDL-39915 cleanup core_completionlib_testcase

9 years agoMDL-39915 cleanup core_collator_testcase
Petr Škoda [Sat, 27 Jul 2013 09:32:08 +0000 (11:32 +0200)]
MDL-39915 cleanup core_collator_testcase

9 years agoMDL-39915 cleanup core_code_testcase
Petr Škoda [Sat, 27 Jul 2013 09:23:36 +0000 (11:23 +0200)]
MDL-39915 cleanup core_code_testcase

9 years agoMDL-39915 cleanup core_blocklib_testcase
Petr Škoda [Sat, 27 Jul 2013 09:21:10 +0000 (11:21 +0200)]
MDL-39915 cleanup core_blocklib_testcase

9 years agoMDL-39915 cleanup core_authlib_testcase
Petr Škoda [Sat, 27 Jul 2013 09:13:28 +0000 (11:13 +0200)]
MDL-39915 cleanup core_authlib_testcase

9 years agoMDL-39915 cleanup core_admintree_testcase
Petr Škoda [Sat, 27 Jul 2013 09:11:09 +0000 (11:11 +0200)]
MDL-39915 cleanup core_admintree_testcase

9 years agoMDL-39915 cleanup core_accesslib_testcase
Petr Škoda [Sat, 27 Jul 2013 08:58:11 +0000 (10:58 +0200)]
MDL-39915 cleanup core_accesslib_testcase

9 years agoMDL-39404 Update question/format files to match codechecker standards
Jean-Michel Vedrine [Mon, 29 Apr 2013 08:43:45 +0000 (10:43 +0200)]
MDL-39404 Update question/format files to match codechecker standards

9 years agoMDL-40891 prevent exceptions when creating directories in file store
Petr Škoda [Fri, 26 Jul 2013 18:28:57 +0000 (20:28 +0200)]
MDL-40891 prevent exceptions when creating directories in file store

Even if cache creation fails moodle should continue working.

9 years agoMDL-40891 work around make_writable_directory() race condition
Petr Škoda [Fri, 26 Jul 2013 18:27:36 +0000 (20:27 +0200)]
MDL-40891 work around make_writable_directory() race condition

You will still get a "PHP Warning:  mkdir(): File exists" but that should not cause any problems on production sites.

9 years agoMDL-40775 mod_feedback - Undefined variable in feedback activity
Andreas Grabs [Mon, 22 Jul 2013 19:16:00 +0000 (21:16 +0200)]
MDL-40775 mod_feedback - Undefined variable  in feedback activity

9 years agoMDL-40746 mod_feedback - Feedback forms display oddly in Clean theme
Andreas Grabs [Mon, 22 Jul 2013 20:00:16 +0000 (22:00 +0200)]
MDL-40746 mod_feedback - Feedback forms display oddly in Clean theme

9 years agoMDL-35053 questions: question files outside an attempt.
Tim Hunt [Wed, 17 Jul 2013 19:26:39 +0000 (20:26 +0100)]
MDL-35053 questions: question files outside an attempt.

Now update all the places that display files outside attempts to use the
new API.

9 years agoMDL-35053 questions: question files outside an attempt.
Tim Hunt [Wed, 17 Jul 2013 18:46:27 +0000 (19:46 +0100)]
MDL-35053 questions: question files outside an attempt.

Sometimes it is necssary to display parts of a question outside of an
attempt. For example for staff review. When displaying the question, we
need to handle images in the question text. In the past there was a
mechanism for this that could only cope with the question text.

This commit introduces a new method that can handle displaying any
part of the question content.

This commit intentionally does not upgrade the parts of the system that
use the mecanism. That is so that this commit can be used to demonstrate
that backwards-compatibility works. The next commit will upgrade the
callers.

9 years agoMDL-40854 fix mod/...:view capabilities
Tim Hunt [Wed, 24 Jul 2013 18:14:15 +0000 (19:14 +0100)]
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.

9 years agoMDL-40857 External tool: fix incorrect moodle_url usage.
Tim Hunt [Wed, 24 Jul 2013 11:47:50 +0000 (12:47 +0100)]
MDL-40857 External tool: fix incorrect moodle_url usage.

9 years agoMDL-40857 External tool (LTI) capabilitiy names confusing.
Tim Hunt [Wed, 24 Jul 2013 11:42:33 +0000 (12:42 +0100)]
MDL-40857 External tool (LTI) capabilitiy names confusing.

I have improved the names in the language file so that they actually say
what they do (based on my reading of the code). I have also added
comments to access.php explaining each capability.

I have corrected a few of the RISK in access.php which were wrong.

I have changed a couple of the archetypes so that guests cannot launch
LTI activities, and editing teachers cannot do editing things.