444 Commits

Author SHA1 Message Date
toyomoyo
dc5586907d replacing deprecated calls and references to capability calls 2006-09-20 09:00:04 +00:00
toyomoyo
9c37662f22 replacing deprecated funciton calls with capability calls 2006-09-19 09:16:24 +00:00
toyomoyo
9fe3be1b01 fixed a bug where wrong parameters is passed 2006-09-19 06:36:54 +00:00
vyshane
16b09a43ca Added moodle/site:viewparticipants 2006-09-18 09:09:25 +00:00
vyshane
bd574b2a06 Removed isteacher() 2006-09-18 05:29:42 +00:00
vyshane
0019725320 Removed references to showsiteparticipantslist. Replaced by capability. 2006-09-18 05:28:06 +00:00
moodler
4801fe93a2 Various logic and capability fixes 2006-09-15 15:04:38 +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
d78596d804 Fixed a notice 2006-09-14 06:48:58 +00:00
moodler
89d57596bd Fixed a typo 2006-09-14 06:30:02 +00:00
toyomoyo
17d6a25e5c adding capabilitiies 2006-09-13 09:08:14 +00:00
moodler
e82dc9bb41 Tidy-ups for user profile page 2006-09-13 06:56:25 +00:00
toyomoyo
be2e1b6698 removing debug statement 2006-09-13 06:13:53 +00:00
toyomoyo
cbf0446d8a use user_lastaccess table to find inactive time instead of user_students table 2006-09-13 06:13:07 +00:00
moodler
94fb6d1d62 fixing a problem where a user hasn't got any entries on the user_lastaccess table, temp solution as this could break other db 2006-09-13 05:55:57 +00:00
toyomoyo
8ca1053a45 changed to outer join as user_lastaccess table could contain null 2006-09-13 05:29:26 +00:00
moodler
7da0af9feb Fixed some obvious typos 2006-09-13 05:05:17 +00:00
toyomoyo
ae9e4c064e replacing iscreator() calls with capabilty 2006-09-12 08:56:10 +00:00
toyomoyo
dfe603583e changed code to use the user_lastaccess table instead of the user table 2006-09-12 07:39:25 +00:00
skodak
55f3a4db69 removed useless "changes saved" messages from redirects in administration and user management 2006-09-11 18:56:41 +00:00
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +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
gustav_delius
b7ef492c41 Take out invalid </tr>. While this makes the html valid some work should still be done on the layout of this. 2006-09-03 12:23:11 +00:00
skodak
e0f6e99528 fixed frontpagesettings, install is not useing admin/site.php anymore 2006-09-02 15:29:52 +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
moodler
67a3fac51f Added new field 'ajax' to user table, to store AJAX preference 2006-08-28 06:41:05 +00:00
danmarsden
6ba7f08774 Fix for MDL-4190 - when admin is editing profile, admin loses all subscriptions to forums. 2006-08-27 20:33:54 +00:00
moodler
a72784d3c6 Just a slight tidy-up 2006-08-25 08:54:22 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
toyomoyo
b3e900cee6 some more UI change 2006-08-16 09:11:43 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
toyomoyo
7e2d7c92ad some UI changes 2006-08-14 08:46:44 +00:00
skodak
b367b152ad fixed warning during installation when creating admin account 2006-08-14 08:44:30 +00:00
moodler
e957cc2644 Cleaned up a bunch of notices and some logic 2006-08-14 08:38:49 +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
moodler
acee2e2491 Temporayr debug a bit more sensible 2006-08-13 15:50:58 +00:00
moodler
bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +00:00
toyomoyo
171948fd4a bumped up version to add keys, changed some more UI 2006-08-10 08:21:29 +00:00
moodler
ee4a52c59e Removed tabs 2006-08-09 13:53:12 +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
43f06aa027 Bug #5927 - extending enrollments doesn't; merged from MOODLE_16_STABLE 2006-06-26 21:58:35 +00:00
moodler
adc7b679aa Merged user tab visibility from stable 2006-06-19 13:52:39 +00:00
moodler
c1edf72575 Merged header fix from stable 2006-06-19 13:38:17 +00:00
mjollnir_
ca79268087 merged from MOODLE_16_STABLE: participants list last access filter should only show for teachers! I noticed this on moodle.org this morning :| 2006-06-15 21:37:20 +00:00
toyomoyo
dec87f2e28 merged, a few mismatch of length between db and this html 2006-06-12 07:18:58 +00:00
toyomoyo
cc841d67b0 merged, fixed a bug that blog tabs are displayed when blog is diabled 2006-06-09 02:53:16 +00:00
skodak
e369e0c4b4 Bug #5715 - error message in messaging - notice lastaccess; merged from MOODLE_16_STABLE 2006-06-04 23:11:18 +00:00
skodak
165a7502f8 Bug #5643 - add Yahoo online status to user profile; merged from MOODLE_16_STABLE 2006-06-01 15:19:06 +00:00