]> git.mjollnir.org Git - moodle.git/commit
OK, this is a new scheme to allow some teachers to edit and others to not
authormoodler <moodler>
Sat, 16 Aug 2003 05:19:24 +0000 (05:19 +0000)
committermoodler <moodler>
Sat, 16 Aug 2003 05:19:24 +0000 (05:19 +0000)
commit73047f2f76d91a319d3fd803e84869e78315ed62
tree973664d31da38dce4a11b62f452c74d29935c374
parent542a6914e591fde06d797ba3e0a400404eb0276d
OK, this is a new scheme to allow some teachers to edit and others to not
that is much better than the proposal to change the role of course creators.

There is a new field in user_teachers called "editall", which is
ON BY DEFAULT, and allows teachers to edit courses.  It can be modified
on the teacher editing screen (formerly assign teachers).

The value is cached in the session.

To test for it, there is a new function isteacheredit($course->id)
which works much like isteacher did.

I'm going through now and applying this new function wherever
it is needed.
course/teacher.php
course/view.php
lib/datalib.php
lib/db/mysql.php
lib/db/mysql.sql
lib/db/postgres7.php
lib/db/postgres7.sql
lib/moodlelib.php
version.php