cap2501
8a66975e84
cleaned up some formatting
2006-09-17 17:48:27 +00:00
moodler
88af238ccb
$CFG->defaultcourseroleid defines a site default for the role given to
...
people who enrol in the course.
$course->defaultrole defines the value for each course for what role
should be used in the same case. Naturally it defaults to the site config
(when it is zero).
This role is retained even when the person editing the course settings
doesn't actually have that role in their list of assignable rights (however
they are prevented from actually switching to any such role themselves).
Note that enrol plugins are free to ignore these values and use whatever
roles they like. Generally, though, they should respect these settings.
2006-09-17 09:22:33 +00:00
moodler
88768091a4
Upgrading print_course to use roles properly
...
Added list for the teacher names for better XHTML
2006-09-16 15:23:41 +00:00
moodler
5c98bf9e3a
Enrolments working better now. The core part is done, just the plugins to go.
...
The enrolment plugins are now checked from load_user_capability()
2006-09-16 13:59:38 +00:00
moodler
5ed3bf228a
Fixed a notice
2006-09-16 12:58:50 +00:00
moodler
d3e47e0d66
Deleting deprecated methods of assigning people to courses
2006-09-15 16:03:49 +00:00
tjhunt
36075e092d
MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
...
Also a few more ISNULL()s eliminated.
And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
moodler
4b10f08b88
Rename CONTEXT_USERID --> CONTEXT_USER for consistency
2006-09-15 14:09:16 +00:00
moodler
2939bfe444
Fixed some notices
2006-09-15 13:46:11 +00:00
toyomoyo
ea8158c118
changing sql calls from user_students table to role_assignments table
2006-09-14 09:08:07 +00:00
tjhunt
43e3febb23
Delete what I assume is a bogus line.
2006-09-13 13:25:00 +00:00
toyomoyo
17d6a25e5c
adding capabilitiies
2006-09-13 09:08:14 +00:00
moodler
761a15574c
Fixed up this script so that self-unenrolment works as expected
2006-09-13 06:41:58 +00:00
skodak
3fde1a3d2f
groups assignment now works with assigned roles instead of user_students and user_teachers
2006-09-12 20:55:58 +00:00
moodler
32b9a98349
Fixed a bug that must have been there for a while, so that guest icons work again
2006-09-12 14:02:15 +00:00
toyomoyo
ae9e4c064e
replacing iscreator() calls with capabilty
2006-09-12 08:56:10 +00:00
toyomoyo
1c45e42e3c
adding capabilities
2006-09-11 08:56:23 +00:00
skodak
3435f39bab
validate local redirection actions in jumpto.php SC#310
2006-09-11 06:47:38 +00:00
skodak
d541baa141
fixed courseid typo
2006-09-10 22:01:39 +00:00
skodak
a13d2157f4
fixed wrong placement of comma
2006-09-08 15:53:24 +00:00
toyomoyo
51792df056
adding capabilities
2006-09-08 08:46:26 +00:00
toyomoyo
ec7a8b7999
adding capabilities
2006-09-07 08:57:56 +00:00
toyomoyo
d02eededf7
adding capabilities
2006-09-06 08:55:23 +00:00
toyomoyo
3924b9884b
adding capabilities
2006-09-05 08:50:23 +00:00
moodler
2244c22d72
Use the new config variable as a default for paging
2006-09-05 06:11:48 +00:00
cap2501
5be392bd10
Updated so nothing in the database is being manipulated directly except for the block position. look into moving this functionality into the blocks_execute_action.
2006-09-05 00:47:47 +00:00
stronk7
fea43a7f51
Casting $course->modinfo to string prevents one notice to
...
be showed when it's null, returning false as desired.
2006-09-04 21:12:37 +00:00
moodler
4d2401d524
Removed student view
2006-09-03 08:46:30 +00:00
skodak
6e4dc10f54
deglobalization of $ADMIN; merged admin/adminlib.php into lib/adminlib.php; fixed includes and some other minor fixes
2006-09-02 13:14:57 +00:00
skodak
86a1ba04fd
replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack
2006-09-02 11:44:04 +00:00
cap2501
305f223035
Switched over to using moodle commands instead of direct DB manipulation for everything but blocks(still working on that one).
2006-08-30 21:38:23 +00:00
cap2501
ff96b9df7e
Added the 'delete' methods back nessicary to change $field to optional.
2006-08-30 19:22:34 +00:00
moodler
3511c16cfd
Minor change to prevent bugs while Ed works on not needing this parameter at all.
2006-08-29 04:04:12 +00:00
cap2501
d63545d8e8
Fixed errors in refactoring ( rev4, almost there)
2006-08-29 02:34:35 +00:00
cap2501
dad4a8e5d7
Fixed errors in refactoring ( rev3, almost there)
2006-08-29 02:02:45 +00:00
cap2501
5281e0ab2a
Fixed errors in refactoring ( rev2)
2006-08-29 01:38:58 +00:00
cap2501
6fe72833d0
Fixed errors in refactoring
2006-08-29 01:35:45 +00:00
moodler
5bfecd388d
Cleaned up the code to remove security issues and to show Ed Coyne
...
how to use the Moodle API and follow coding guidelines.
I think I broke something but I'm sure Ed can fix it from here!
2006-08-28 14:42:07 +00:00
moodler
a0bfbeaae8
Integrated topicsajax into "topics"
2006-08-28 06:49:19 +00:00
cap2501
0dcb53d545
removed override for $USER->use_ajax
2006-08-28 04:30:46 +00:00
cap2501
2f661649b0
*** empty log message ***
2006-08-28 02:49:04 +00:00
cap2501
49884e9702
Removed evil tabs
2006-08-27 23:45:36 +00:00
cap2501
9a900dfc07
converted dos mode to unix mode
2006-08-27 23:28:39 +00:00
cap2501
097579f09c
Fixed to eliminate use of 'GET' and 'POST'
2006-08-27 22:58:51 +00:00
cap2501
ee3c87bd84
Fixes needed to work from cvs
2006-08-27 22:09:56 +00:00
vyshane
1a3e93ffe6
Added has_capability checks
2006-08-25 08:51:50 +00:00
vyshane
25c38f25a1
Added has_capability check
2006-08-25 08:30:25 +00:00
vyshane
6ac96fcb3c
Added has_capability checks
2006-08-25 08:27:28 +00:00
toyomoyo
41d7209c7f
some (mainly admin realated) capabilities
2006-08-25 08:27:27 +00:00
moodler
954fdb4293
FIxed some tabs :(
...
and added a module-xxxxx CSS id to each item
2006-08-25 07:09:28 +00:00