847 Commits

Author SHA1 Message Date
moodler
9aeeb39286 forum subscriptions use capabilities 2006-09-01 06:56:24 +00:00
vyshane
7b12414814 Fix for bug MDL-6385 2006-08-29 02:09:31 +00:00
stronk7
683ff5d4f3 Dropping forum.open and forum.assesspublic
(mimic from .sql files)
2006-08-28 16:20:52 +00:00
vyshane
5ce6f628ba Dropping forum.open and forum.assesspublic from .sql files. Added forum
upgrade to roles code to postgres7.php.
2006-08-28 03:51:38 +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
5cae056c45 Removed deprecated teacher forum type 2006-08-22 07:42:34 +00:00
vyshane
45c38eef4c Removed deprecated forum type teacher. 2006-08-22 07:38:01 +00:00
vyshane
d604bdeaed Added prevent for mod/prevent:createattachment for default students and guests
in teacher forums
2006-08-22 05:56:45 +00:00
vyshane
9fa3350862 Upgrade now works. Needs more testing. 2006-08-22 05:45:43 +00:00
vyshane
f13a5fa609 Removed forum->open config since roles will take over this 2006-08-22 02:43:58 +00:00
vyshane
ac195b6fa6 Need to pass the module id and not the object to add_course_module 2006-08-22 02:24:45 +00:00
vyshane
c1de8b8a80 Fixed bug - empty teacher forums (deleted) should not have a course module
created for them.
2006-08-21 08:45:12 +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
skodak
7f5495053f fixed short php tag and end tag in comment 2006-08-19 11:15:59 +00:00
vyshane
e6416e3f12 Updated upgrade to roles system 2006-08-18 07:08:14 +00:00
vyshane
314af32a92 Forum upgrade to roles in progress (commented out). 2006-08-18 04:17:31 +00:00
vyshane
c39f126780 Fixed warning 2006-08-17 03:52:05 +00:00
toyomoyo
b3e900cee6 some more UI change 2006-08-16 09:11:43 +00:00
vyshane
e40a7a3c8b Fixing notices 2006-08-16 03:24:43 +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
stronk7
49025df359 Added one comment about recursive FK for the future. 2006-08-11 18:36:47 +00:00
stronk7
b72bed89da Give some more chars to enum fields. 2006-08-11 16:45:45 +00:00
stronk7
d7a4f74ede XMLDB schema initial commit for forum module 2006-08-11 16:35:11 +00:00
vyshane
628e2264b1 Adding back lines that mysteriously disapeared. 2006-08-10 05:57:34 +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
f0eb2ffe85 Added mod/forum:viewhiddentimedposts 2006-08-09 09:17:37 +00:00
vyshane
0fa18d5a27 Bug fixes + updated capabilities. 2006-08-09 06:59:28 +00:00
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +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
1322b7199a fixed warning when no referer available; merged from MOODLE_16_STABLE 2006-07-31 10:05:23 +00:00
martinlanghoff
c1cda9df45 forum: notification of a moved dicussion (bug#4874)
Moving a discussion now leaves a notification message in the
original location with a link to the new location.


Author: Luke Hudson <luke@catalyst.net.nz>
2006-07-31 04:54:44 +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
skodak
895a45e231 Bug #5944 - error message when moving thread; merged from MOODLE_16_STABLE 2006-06-29 08:01:48 +00:00
vyshane
4e5e7d54b5 Merged from 1.6 stable. Error message now displays using notify() instead of
error() when purging of old RSS feeds fail during a discussion move.
2006-06-26 04:44:41 +00:00
moodler
e6dd6b9a68 No need for error when deleting RSS feed 2006-06-19 16:20:35 +00:00
moodler
e5f121c6c1 Merged XHTML fix from stable 2006-06-18 08:21:35 +00:00
vyshane
883f4e3dc6 Merged fix from 1.6 for bug:
Notice: Undefined property: id in /home/moodle/public_html/certificate/mod/forum/discuss.php on line 38

This happens when the user is not logged in and wants to view a forum of type
news.
2006-06-14 08:47:19 +00:00
vyshane
b134f6a71e Merged fix from 1.6 for Bug #5131 - RSS Feeds and Moving Discussions. 2006-06-07 08:19:34 +00:00
tjhunt
c078b2527b Fix notices when you restore a course with an empty forum. Merged from MOODLE_16_STABLE. 2006-06-06 17:25:00 +00:00
stronk7
1fa6d46069 Adding support to the forum user report action
in restore. Bug 3854.
(http://moodle.org/bugs/bug.php?op=show&bugid=3854)

Merged from MOODLE_16_STABLE
2006-06-03 17:51:20 +00:00
skodak
ee1e1a3b99 fixed warning and removed ugly hack in attachment path; merged from MOODLE_16_STABLE 2006-06-02 06:49:08 +00:00
stronk7
2dbd7916e0 Adding propper support for the forum->user report log action. It was
a bit wrong. Code credits go to Petr!

Merged from MOODLE_16_STABLE
2006-06-01 23:16:08 +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