392 Commits

Author SHA1 Message Date
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
20dd4cf5a1 Added new capability to switch roles (replaces old student view) 2006-09-21 07:44:53 +00:00
ikawhero
d096e0d8b5 Bump for new tables. See MDL-474 2006-09-20 14:18:37 +00:00
skodak
45b9781ed4 fixed missing shortname pg upgrade code, sorry 2006-09-19 07:35:48 +00:00
skodak
b79da3ac68 moodle/course:managemetacourse is now singular 2006-09-19 06:35:52 +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
skodak
31f267963a MDL-6568 shortname added to roles 2006-09-18 17:40:22 +00:00
skodak
dca1937c02 removed references to /requested(teachers?|students?)name/ and 'showsiteparticipantslist' - we are now using only default names stored in langpacks for backwards compatibility 2006-09-18 11:21:24 +00:00
skodak
4b7aaf4025 added new capability 'moodle/course:managemetacourses' 2006-09-17 21:03:35 +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
746a04c500 Adding defaultrole to course table 2006-09-17 06:37:59 +00:00
moodler
99f9cb51e0 Added new capability
moodle/role:viewhiddenassigns  - for people to see hidden assignments
2006-09-16 13:56:24 +00:00
moodler
e58eca7222 New capability: moodle/user:viewhiddendetails 2006-09-15 14:39:16 +00:00
moodler
8f8ed475f7 Added a new setting called $CFG->defaultuserroleid which defines
the role that ALL users get by default when they log in.
2006-09-14 09:39:23 +00:00
moodler
0ad8c7850d Reload default guest 2006-09-12 08:17:33 +00:00
moodler
8d158ed44f Reload the guest role using new defaults 2006-09-12 07:10:49 +00:00
moodler
f43ce1ad1d Added moodle/role:unassignself which replaces $CFG->allowunenroll 2006-09-07 08:35:30 +00:00
moodler
42093cca5c Added coursesperpage so paging can be controlled 2006-09-05 03:28:25 +00:00
moodler
7191a1fa27 Added capability for showing documentation links 2006-09-03 16:26:55 +00:00
skodak
7fbd539a18 version bump for db upgrades 2006-09-03 00:00:17 +00:00
stronk7
5f941d12ab user->description can be NULLable (experimenting....) 2006-08-31 23:31:36 +00:00
stronk7
6c76032bc1 course_categories->description can be NULLable (experimenting....) 2006-08-31 23:17:23 +00:00
stronk7
545196c55f course->modinfo nullable and no default 2006-08-31 19:42:22 +00:00
skodak
be4486da83 capability riskbitmasks and user trustbitmask patch #1 see MDL-6412 2006-08-31 08:36:36 +00:00
skodak
e9d5166a3e fixed wrong type for session data field in mysql, enabled feedback when dropping old session table during upgrade 2006-08-30 16:37:52 +00:00
skodak
647a256616 db sessions are now using the newer session handler adodb-session2.php 2006-08-29 22:45:54 +00:00
moodler
67a3fac51f Added new field 'ajax' to user table, to store AJAX preference 2006-08-28 06:41:05 +00:00
skodak
7d8a3cb06a trusttext:
* proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)
2006-08-26 13:00:07 +00:00
toyomoyo
945f88ca15 various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib 2006-08-23 06:36:08 +00:00
stronk7
598dc3a99c Change rule to tzrule (reserved word) 2006-08-22 21:19:52 +00:00
toyomoyo
d140ad3f7c fix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks 2006-08-21 05:19:16 +00:00
toyomoyo
f9e2f481df adding role_allow_assign , role_allow_override table and dropping role_deny_grant 2006-08-17 08:58:51 +00:00
toyomoyo
77d4953ee2 bumpoing up version, permission has to be signed integer in mysql!!! added new capabilities in access.php 2006-08-16 07:57:51 +00:00
toyomoyo
171948fd4a bumped up version to add keys, changed some more UI 2006-08-10 08:21:29 +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
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
stronk7
8f7211fc2c minor bump to perform some changes on grade_letter
Mimic from MOODLE_16_STABLE
2006-07-18 16:35:52 +00:00
stronk7
d836482a34 Moving from lastIP to lastip everywhere. Bug 5763.
(http://moodle.org/bugs/bug.php?op=show&bugid=5763)

Merged (more or less) from MOODLE_16_STABLE
2006-06-09 09:47:01 +00:00
stronk7
ae57b07c06 report XXXX actions added. Bug 5714.
(http://moodle.org/bugs/bug.php?op=show&bugid=5714)

More or less, merged from MOODLE_16_STABLE
2006-06-04 00:54:34 +00:00
toyomoyo
462458c66b renaming reads and writes to statsreads and statswrites 2006-05-24 05:07:22 +00:00
martinlanghoff
f172091567 moodle16cleanup: mod/dialog we need to drop some more dialog module tables 2006-05-17 06:34:19 +00:00
stronk7
297bb00dfe Changing session->data to medium text. Bug 5406.
(http://moodle.org/bugs/bug.php?op=show&bugid=5406)

Bump!
2006-05-08 16:40:44 +00:00
vyshane
0aa81bc346 Fix for Bug #5419 - Inconsistency between log_display and log tables. Bumped
version number.
2006-05-05 08:43:00 +00:00
toyomoyo
e503f30d10 merged fix for 5426 2006-05-04 09:40:33 +00:00
moodler
44d57cc35a Updated version for Moodle 1.7 dev 2006-05-03 15:32:41 +00:00
toyomoyo
993763bf17 1.6 Beta 4! 2006-04-28 05:54:27 +00:00
toyomoyo
0327c40abb bug fix for 5303. hope i didn't break anything >_< 2006-04-28 03:18:56 +00:00
toyomoyo
cb24115c8e trying to change all the default NULL fields to NOT NULL default '0'/'', hope i didn't mess up. Please report any bugs asap! 2006-04-26 05:48:04 +00:00
toyomoyo
31513aa13e changing tags->text to varchar 20, created index on tags(type, userid), and tags(text) 2006-04-24 05:53:06 +00:00
toyomoyo
9a7f3cad99 fix for 5205 2006-04-24 02:20:06 +00:00