Commit Graph

698 Commits

Author SHA1 Message Date
Petr Skoda b6481ac993 MDL-27653 fix incorrect int | object detection 2011-07-24 15:06:07 +02:00
Eloy Lafuente (stronk7) 4bd293ee63 Merge branch 'MDL-27040_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-06 19:26:56 +02:00
Aparup Banerjee ae8da34929 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/"
- cherry-picked and resolved conflicts
2011-07-05 15:39:56 +08:00
Tim Hunt ae912070ea MDL-27040 get_users_by_capability generates u.id IN () when no uesrs have accessallgroups 2011-07-04 19:01:06 +01:00
Petr Skoda 12db898084 MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:13:28 +02:00
Petr Skoda 7ca448fa83 MDL-26805 cleanup default role selections
Frontpage role selection now allows only guest and frontpage roles. Default forntpage role is selected duuring install. Unused nodefaultuserrolelists option was removed completely. Coding style improvements.
2011-04-11 13:08:35 +02:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda 28765cfcb5 MDL-25575 fix broken block support in get_courseid_from_context() 2011-02-13 18:59:53 +01:00
Eloy Lafuente (stronk7) e030faee3e Take out debugging & merge branch 'w05_MDL-26198_20_completion' of git://github.com/skodak/moodle 2011-01-31 17:43:22 +01:00
Petr Skoda ff03c5b6b5 MDL-26198 make user_has_role_assignment() check parent contexts too 2011-01-30 21:49:22 +01:00
Eloy Lafuente (stronk7) afa559e9bc MDL-25708 recordsets - fix accesslib and datalib uses 2011-01-25 19:58:59 +01:00
Dan Poltawski 047c3b6cd3 lib/accesslib.php MDL-25709 - fix docs 2011-01-03 23:41:10 +00:00
David Mudrak 61869c550f MDL-25316 capabilities defined in subplugins are available when overriding the module permissions 2010-12-02 16:51:41 +00:00
Sam Hemelryk ed1d72ea70 navigation MDL-25142 Fixed up differences in navigation between guest and normal user.
As part of this patch I also introduced a new method in accesslib can_access_course that can be used
to check a users access to a course.
I also fixed a minor issue with guest access flag caching in require_login
2010-11-11 03:37:56 +00:00
Petr Skoda 090b958641 no return necessary after exception thrown 2010-11-11 00:39:53 +00:00
Andrew Davis 46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Petr Skoda 1fa894b374 fixed table name typo 2010-10-27 08:09:32 +00:00
Petr Skoda d0e538ba1c MDL-19702 rewritten context caching by Sam Marshall + tweaks for potential problems caused by drift 2010-10-26 16:21:23 +00:00
Petr Skoda 79556891f8 MDL-24847 fixed problem when default roles have probibit capabilities 2010-10-26 07:51:09 +00:00
Petr Skoda 0831484c2a MDL-14817 fixing recent regressions 2010-10-13 08:29:22 +00:00
Petr Skoda 3c447ebe59 MDL-14817 eliminating all potential ra duplicates 2010-10-12 09:08:36 +00:00
Petr Skoda 62e65b21ab minor coding style improvements and phpdocs cleanup 2010-10-01 21:45:14 +00:00
Petr Skoda 448aad7f5e MDL-24339 improved coding style and fixed id duplicates in get_roles_with_capability() 2010-10-01 21:13:27 +00:00
Petr Skoda b7b88c090d MDL-24339 workaround for broken parents in block instances 2010-09-29 08:16:13 +00:00
Petr Skoda 365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Andrew Davis 2ac5625874 rating MDL-23586 shifted deletion of ratings out of per module delete instance functions and into delete_context() 2010-09-20 03:25:35 +00:00
Petr Skoda b2cd657023 MDL-24278 fixed regression that surfaced after my recent fix 2010-09-19 13:30:05 +00:00
Petr Skoda 582bae08ff MDL-24148 several course delete improvements and fixes:
* fixed order of deleting in course adn context
 * adding course context to event data because it is not available alter and some stuff may depend on old context id
 * adding option for context purging (keeps the context record because it might be still referenced later and it would be recreated)
 * new course enrol cleanup
 * removing content from some course fields that were referencing deleted content
 * coding style and phpdocs improvements
2010-09-19 13:09:48 +00:00
Petr Skoda 7875b1fdfd fixed invalid context creation call 2010-09-18 11:19:37 +00:00
Petr Skoda e92c39cadc improved phpdocs 2010-09-17 12:04:48 +00:00
Petr Skoda 707c9e8b47 fixed one more missing global 2010-09-17 07:41:03 +00:00
Petr Skoda 343d3582bb fixed missing global $ACCESSLIB_PRIVATE minor problems 2010-09-17 07:40:19 +00:00
Petr Skoda 5fd9e798dc fixed missing global $USER causing regressions 2010-09-17 07:39:48 +00:00
Petr Skoda 2fb3434554 fixed missing global causing regressions 2010-09-17 07:39:14 +00:00
Petr Skoda fafa57e972 MDL-24245 groups now respected if capability not specified in enrolment sql - thanks Sam for discovering this + fixed typos in variable names that were causing other bugs 2010-09-17 07:37:51 +00:00
Sam Hemelryk c971c34c71 enrolments MDL-24246 Fixed up broken groups sql 2010-09-17 02:43:02 +00:00
Dongsheng Cai ec125c7596 MDL-22051, move comments deletion code to accesslib.php 2010-09-08 08:29:46 +00:00
Andrew Davis f9cd798c7e rating MDL-23908 improved rating role tips 2010-08-31 07:59:32 +00:00
Petr Skoda f2b7f45486 MDL-23949 ohlala, I have borked the capabilities preloading completely - sorry for the regression!! 2010-08-29 16:26:35 +00:00
Sam Hemelryk f5c1e62149 navigation MDL-23852 Added is_role_switched method to accesslib and implemented use of it 2010-08-27 01:44:25 +00:00
Petr Skoda f14438dc4e MDL-23948 making $ACCESSLIB_PRIVATE proper global 2010-08-26 16:10:19 +00:00
Petr Skoda b545e27a1c MDL-23949 fixed wrong preloading of caps caused by uninitialised $USER 2010-08-26 15:44:42 +00:00
Petr Skoda b3df176457 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:56:07 +00:00
Sam Hemelryk a4c0961c54 lib MDL-23880 Added missing field in get_enrolled_sql causing errors when capability had prohibited roles 2010-08-20 02:45:03 +00:00
Petr Skoda 35716b8682 MDL-22001 filter_text() and filter_string() now use context parameter instead of courseid, PAGE->context is used only as a fallback; moved comment stuff away from format_text() because it does not belong there; filterlib is not using courseid except for legacy filters; fixed coding style in filters;?improved php docs; fixed upgrade of filters (should be in plugins, not core) 2010-07-30 20:51:01 +00:00
Petr Skoda 78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Eloy Lafuente 3e09bb690b MDL-23400 accesslib - get_assignable_roles() now accepts $user param 2010-07-19 17:51:17 +00:00
Petr Skoda 835d78ff9e MDL-22056 simplified component name handling + converting reports to proper pluginname
AMOS BEGIN
 MOV [capability,report_capability],[pluginname,report_capability]
 MOV [questioninstances,report_questioninstances],[pluginname,report_questioninstances]
 MOV [reportsecurity,report_security],[pluginname,report_security]
 MOV [spamcleaner,report_spamcleaner],[pluginname,report_spamcleaner]
AMOS END
2010-07-15 17:13:45 +00:00
Petr Skoda 730eae9ca5 MDL-22056 simplified string name handling 2010-07-15 16:32:26 +00:00
Petr Skoda fa25639535 modulename not used for gradebook plugins any more 2010-07-10 15:10:46 +00:00