98 Commits

Author SHA1 Message Date
donal72
7340c7435c Mnet: Remove 'Hide remote users' if there are no remote users: MDL-8068 2007-01-12 01:10:36 +00:00
martinlanghoff
d14383e0a0 mnet/multienrol: admin area changes, including test for curl extension 2007-01-04 03:19:49 +00:00
moodler
2f1a42481d This new function called load_all_capabilities() should be used whenever
you want to completely reload the capabilities for the current user.

Basically it will deal nicely with the default site-wide permissions
depending on the current user.

More background in the comments on MDL-6963

Merged from stable
2006-10-23 15:17:31 +00:00
skodak
82a4eee1a2 fixed rolesactive notice during installation; merged from MOODLE_17_STABLE 2006-10-19 22:18:22 +00:00
skodak
2b82319d94 Delete user fails if apostrophe in email address MDL-4762 ; found and solution provided by Inaki Arenaza - merged from MOODLE_17_STABLE 2006-10-18 21:46:14 +00:00
skodak
856f7cb7e6 do not display guest when browsing users 2006-09-24 11:58:28 +00:00
skodak
38d2d43b01 roles fixed in user browsing page; admin section now accepts array of capabilities for external and settings pages 2006-09-24 11:55:11 +00:00
moodler
67171ec800 Fixed typo in capability name 2006-09-21 16:46:10 +00:00
toyomoyo
d76a5a7fed replacing references to user_* tables 2006-09-19 01:44:33 +00:00
moodler
bee4702d10 Various tidying up of the admin pages.
Reports now don't need mod.php but they should include the admin headers/footers.

There are undoubtedly bugs in this but this framework should be more sane
2006-09-03 14:45:57 +00:00
vinkmar
4cd174bfce Reverting changes to file from admin page cleanup... whoops! Accidentally broke the install. 2006-08-18 07:52:56 +00:00
vinkmar
90a73bb361 Admin page cleanup (Google soc 2006) 2006-08-18 07:25:17 +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
vyshane
df9c66776d Admin role assignment: changed from using get_string (too brittle) to
get_roles_with_capability (more robust).
2006-08-11 03:58:52 +00:00
vyshane
abd896a114 Commented out code that adds the new admin user to user_admins and
user_teachers tables from user.php.

Fixed notices in roles/assign.php.
2006-08-11 03:24:37 +00:00
vyshane
0c30fdc924 Modified to support fresh installation of new Roles System. 2006-08-11 02:44:42 +00:00
moodler
5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +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
eac8ac87c7 fixed notice and corrected the use of new s() and p() 2006-04-26 21:25:50 +00:00
skodak
df1931578a password handling refactoring and added conversion of passwords to unicode 2006-03-11 11:26:36 +00:00
skodak
7710da22bd parameter cleaup - round 7; corrected search in user.php, semicolon in case fixed in utfdbmigrate (I wonder if it caused any problems) 2006-03-07 16:42:30 +00:00
gustav_delius
9e20154488 XHTML compliance, merged from STABLE 2005-06-24 13:02:32 +00:00
thepurpleblob
c0257c9774 Replaced optional_variable()s with optional_param()s for greater security. 2005-06-10 19:40:06 +00:00
moodler
bde4153a55 Free up idnumber field 2005-05-14 02:39:28 +00:00
moodler
ab6d2992e8 Search = GET and fixed the dead end when no results to search 2005-02-21 13:50:06 +00:00
defacer
04280e857e Renamed set_user_sesskey() to just sesskey(). SC#74 2005-01-23 22:07:13 +00:00
defacer
1a33f699b2 Merging fix for bug 2264 & improvements from MOODLE_14_STABLE 2005-01-12 11:40:46 +00:00
defacer
642fd913d3 Capitalized $user->sessionIP to $USER->sessionIP. Probably was a typo,
considering the comment just above.
2005-01-12 11:33:45 +00:00
martinlanghoff
0c3e818cb1 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321 Fixed bug in user search: now we trim() the search string 2004-11-18 02:47:02 +00:00
moodler
56c178a754 Merged search trim from stable 2004-11-04 07:15:50 +00:00
moodler
5526e0fa64 Make sure the new admin user has the sessionIP set properly the first time 2004-10-08 13:16:34 +00:00
moodler
03c40645c1 Merged sesskey fixes from STABLE 2004-10-04 13:50:37 +00:00
stronk7
4cfc640037 admin/user.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 17:19:36 +00:00
moodler
170ed2a1cf Set the sesskey for new admins 2004-10-02 15:22:11 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
fiedorow
16da26a666 With authentication defined on per user basis, all user administration methods should be available, regardless whether the default site method is internal or external 2004-09-16 01:50:41 +00:00
gustav_delius
0cdd138180 some fixes for XHTML compliance 2004-09-12 00:21:21 +00:00
moodler
39a5a35d6d Finalise the switchover to using the user->auth field when authenticating.
Thanks, Howard Miller!
2004-08-16 15:41:57 +00:00
moodler
ff7acbfeca Merged recent stable fix for 1607 2004-07-02 02:46:17 +00:00
gustav_delius
0671ba130f used is_internal_auth() to decide if to show "Add new user" link 2004-05-31 08:20:13 +00:00
gustav_delius
aed646106b "Add a new user" link near top of page, see bug 713 2004-05-30 21:12:09 +00:00
moodler
ee02c13d91 Table columns retain current search parameters 2004-03-20 07:03:46 +00:00
moodler
488acd1be9 Some fixes to the functions for fetching users (some of it is backing
out Scott's changes, sorry Scott!) and some fixes to the interface
for the admin user page.
2004-03-20 06:58:52 +00:00
selliott
6c2ae454a5 Modified to be more consistent with user/index.php for paging, sorting and searching 2004-03-19 04:29:00 +00:00
selliott
8516afd507 Added logic to allow confirmation of unconfirmed users. 2004-03-09 21:43:09 +00:00
moodler
e21f6c81b5 No need to require this file 2004-01-11 18:09:09 +00:00
moodler
b405515797 Fixed typo from last night 2003-11-29 14:26:59 +00:00
moodler
2f15e48cf6 Implemented more fullname() calls 2003-11-28 10:31:06 +00:00
moodler
5fde0ca615 Use the new fullname function 2003-11-19 16:15:56 +00:00