vyshane
7c900d5d62
Changed to require_capability where possible
2006-09-25 13:14:50 +00:00
vyshane
7fa8296f01
Bug fixes
2006-09-25 13:05:18 +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
77dc6d0b26
Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch.
2006-09-25 05:12:01 +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
87c7fce004
Merged fix for MDL-6363
2006-09-25 04:03:18 +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
b343df8690
Merged fix for MDL-6615.
2006-09-24 15:28:16 +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
vyshane
1febf1a77a
Replaced isteacher & co. Fixed some issues.
2006-09-22 06:29:40 +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
moodler
1a030f5112
Fix for MDL-6319, to fix opposite-state links for unread tracking settings
2006-09-22 03:36:31 +00:00
moodler
b32c8ddadd
Fixed typos in capability names
2006-09-21 14:05:58 +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
49a0ba9438
Cleanups in view.php. Also moved logging of a forum view so that the event is not logged if the user does not have permission to view discussions in a forum (user never sees the discussions, so not counted as a view).
...
Tidy up of error display in discuss.php for when a user does not have permission to view the discussion.
2006-09-21 05:42:35 +00:00
skodak
d43d749a1b
forum throttling capability meaning reversed
2006-09-20 21:25:51 +00:00
skodak
eef868d17d
major whitespace cleanup - fixed trailng whitespace in new files and admin area
2006-09-20 21:00:45 +00:00
skodak
03f5a0f87c
major whitespace cleanup - fixed \r\n line-ending
2006-09-20 19:46:52 +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
vyshane
689b19297f
Fixed notice
2006-09-20 02:47:57 +00:00
skodak
21b6db6eff
added capabilty risks into access.php and GUI for define role and override; minor fixes for capability types in forum
2006-09-18 21:32:49 +00:00
vyshane
e51e3fcb34
Fixed notice
2006-09-18 12:48:00 +00:00
moodler
fdb1cf2cc1
FIxed to use the new debugging function
2006-09-18 09:13:04 +00:00
martinlanghoff
5a39def902
re-merge of "Merged fix from 1.6 for Bug #5131 - RSS Feeds and Moving Discussions."
...
Originally by vyshane - got dropped accidentally in one of the biiiiig roles
commits.
2006-09-17 02:27:13 +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
966620586e
Better handling of forum id/object
2006-09-14 07:13:08 +00:00
vyshane
8d9a0ae64b
Fix for MDL-6517. Patch by David Mudrak.
2006-09-14 03:18:37 +00:00
thompson697
163ff97e84
Complete work on Roll Forwards - Restore from previous semester (MDL-5532)
...
* Add fields to restore form to enable changes to Short Name, Full Name and Start Date
* Start Date offset added to Restore process
* Created Restorelog file in Course files area
* Activity Modules use offset to change dates
* Activity Modules write changes to Restorelog
2006-09-13 13:19:39 +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
moodler
0f9602085b
Small bump for guest role fix
2006-09-12 08:22:14 +00:00
moodler
8d158ed44f
Reload the guest role using new defaults
2006-09-12 07:10:49 +00:00
moodler
00adf177ad
Changed some default permissions for the guest role
2006-09-12 05:58:42 +00:00
vyshane
6e89ca5527
Fix for MDL-6405
2006-09-11 03:13:52 +00:00
stronk7
428aa337b8
Disable regexp searches for MSSQL and Oracle
2006-09-06 15:30:11 +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
d0d5525d93
Included course/lib.php to be able to rebuild_course_cache()
...
It was working until some time ago, but now it's required.
2006-09-04 19:33:27 +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
stronk7
446a78cd4a
notice() should be allowed at install/upgrade. It stops the whole
...
process without need to do it. Changed to notify()
2006-09-03 22:30:13 +00:00