Commit Graph

484 Commits

Author SHA1 Message Date
skodak 90eca94be8 fixed incorrectly quoted $LIKE in forum recent activity sql 2006-09-27 10:44:25 +00:00
vyshane 83da3d286c Fix for MDL-3975. Also added function in rsslib.php to delete cached RSS feeds for the source and destination forums when moving a discussion between 2 forums. 2006-09-26 08:37:56 +00:00
martinlanghoff a8f4522dfa data, forum, glossary: use sql_ilike() for a portable LIKE operator 2006-09-26 05:08:18 +00:00
vyshane ee8e000823 Fixed bug in forum_make_mail_post() 2006-09-26 02:02:27 +00:00
vyshane dcd8e5890e Abstracted query in a new function forum_discussions_user_has_posted_in() 2006-09-25 08:50:00 +00:00
vyshane cac40c2716 Added $forums[$i]->type == 'qanda' check to make things more explicit 2006-09-25 08:41:31 +00:00
vyshane d50704bf19 Fix for MDL-6212. Forum searches now respect the qanda forums. In these forums, the user should not be able to see posts from discussions where the user has not yet posted, unless a post is the first post in the discussion (the question), or unless the user has the capabilitiy mod/forum:viewqandawithoutposting. 2006-09-25 08:25:58 +00:00
vyshane 66035aafd9 Merged fix for MDL-6521 2006-09-25 05:00:36 +00:00
vyshane 10b6398401 Fixed - wrong constant name 2006-09-25 04:11:41 +00:00
vyshane 2a692058d0 Fix in forum_make_mail_post() 2006-09-25 02:34:52 +00:00
vyshane 0ee186d9ca Typo in capability name. 2006-09-25 01:35:49 +00:00
vyshane 583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
moodler aad2ba95d1 Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
vyshane 9222e72167 Removed capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivities and hide/unhide forums instead. 2006-09-21 08:32:05 +00:00
vyshane 2b15a08dc9 Added some notes for future reference 2006-09-21 07:40:24 +00:00
vyshane 2a1b4af377 Added course module groupmodes in convertion to roles logic 2006-09-20 16:54:50 +00:00
vyshane 6adc1e975d Added more overrides during restore process for forums from 1.6. Plus some bug fixes. 2006-09-20 02:59:43 +00:00
moodler b977b0a365 Fixed some subscription typos 2006-09-15 06:15:01 +00:00
vyshane 67875aa108 Fixed bug in forum_search_posts(). More testing needed still. 2006-09-15 06:04:23 +00:00
vyshane b1342e1869 Minor formatting tidyup 2006-09-14 08:57:41 +00:00
vyshane 42fb3c858f Converted forum searches so that they take into account the new Roles system. Search results will only include what the searcher should be able to see based on his/her capabilities. 2006-09-14 08:44:45 +00:00
moodler d6cc763f73 Added forum_role_assign and forum_role_unassign 2006-09-13 08:11:34 +00:00
moodler 8d630fda5a Expanded forum_add_user_default_subscriptions() for more contexts
Added    forum_remove_user_subscriptions()
2006-09-13 06:40:30 +00:00
stronk7 8289a52ff0 Now forum searches are working both under MSSQL and Oracle
(in a case-sensitive behaviour for Oracle, see code comments and
http://docs.moodle.org/en/XMLDB_Problems#Case-insensitive_searches)
2006-09-06 15:29:26 +00:00
stronk7 9eabd190c1 Now forum_get_discussions() is using $limitfrom and $limitnum 2006-09-05 22:37:56 +00:00
stronk7 b66458257d Adding support for MSSQL and Oracle in this select. Not really sure why we need one OUTER
join there, if every discussion has one usermodified but.....not time now.
2006-09-05 22:31:13 +00:00
stronk7 dcb8916f2d notice() should be allowed at install/upgrade. It stops the whole
process without need to do it. Changed to notify().

Thanks to one "orphan" forum in moodle.org (234) we detected this.
2006-09-03 22:32:14 +00:00
moodler e084b2f98b Replaced forum_get_user() with forum_add_user_default_subscriptions() 2006-09-03 08:01:48 +00:00
moodler 9aeeb39286 forum subscriptions use capabilities 2006-09-01 06:56:24 +00:00
skodak f2b5d7e3b7 trusttext implementation in Forum module, fixed incorrect merging, added missing postresql upgrade code, some other minor fixes 2006-08-27 20:45:04 +00:00
vyshane e1b5643ff7 Changes to take care of forum upgrade to new roles system. Backed up forums
will also be converted to the new roles system if the backup was made
pre-roles.
2006-08-25 02:41:16 +00:00
vyshane 9fa3350862 Upgrade now works. Needs more testing. 2006-08-22 05:45:43 +00:00
vyshane f0da6b858e Removed $forum->open, $forum->assesspublic from code. Fixed bug in upgrade
code, changed module config form to accomdate removal of forum.assesspublic
and forum.open.
2006-08-21 06:56:04 +00:00
vyshane 87ca0adf00 Fixed forum_print_post. Thanks Yu :) 2006-08-16 02:33:43 +00:00
vyshane 951e1073da Added has_capability calls. Reverted forum_search to pre-roles until the
function is totally converted to work with roles.
2006-08-14 07:37:53 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler d1516f2064 Fixed a typo, thanks Tim 2006-08-09 13:55:05 +00:00
vyshane 7613e6d7d1 More updates in lib.php 2006-08-09 09:18:31 +00:00
vyshane 0fa18d5a27 Bug fixes + updated capabilities. 2006-08-09 06:59:28 +00:00
vyshane 9af1611a06 Replaced capability mod/forum:viewdiscussionsfromallgroups by
moodle/site:accessallgroups in code. Removed former from mod/forum/db/access.php.
2006-08-08 06:56:09 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak 57ea9c8fff fixed minor PHP5 compatibility problem with clone(); merged from MOODLE_16_STABLE 2006-07-20 06:54:44 +00:00
skodak bc1544bfc7 Bug #5909 - Fix use of user_group() because it returns arrays now - part 2 forum search fixed too; merged from MOODLE_16_STABLE 2006-07-04 08:32:05 +00:00
moodler e5f121c6c1 Merged XHTML fix from stable 2006-06-18 08:21:35 +00:00
skodak 27e51dfc89 sanitize submitted numerical values 2006-05-26 11:32:26 +00:00
skodak f6f789936d fixed RSS feeds warning bug #5591; merged from MOODLE_16_STABLE 2006-05-23 10:25:39 +00:00
toyomoyo 92998e94bd merged fix for 5551 2006-05-22 02:39:14 +00:00
skodak f393f545d1 typo - fixed undefined $courseid 2006-04-22 17:29:46 +00:00
moodler 7b54f5636d Fix group picture in HTML mail when no CSS is used 2006-04-19 12:47:30 +00:00
mjollnir_ 86e75a7b77 Disable gui for forum timed posts since we are not quite ready for it. All code is still there but hidden & controlled by a config var forum_enabletimedposts. 2006-04-14 04:51:43 +00:00