66 Commits

Author SHA1 Message Date
sam marshall
5c60a847f5 MDL-26647 (1) 'extrauserselectorfields' -> 'showuseridentity', add capability
This change:
- Renames the existing setting 'extrauserselectorfields' to 'showuseridentity'
  in preparation for using it in more places. (Upgrade change, new version.)
- Adds a new capability moodle/site:viewuseridentity, now required in order
  to see the extra fields; if you don't have the capability, you don't see them
- Slightly improves the display of extra fields in user selector list; it used
  to be like 'sam marshall, 01234567, email@address' and is now
  'sam marshall [01234567, email@address]' ie the fields are in square
  brackets
- Turns feature on for the group selector - the feature was enabled for other
  user selectors but not for the group selector. Tim did the disable code, he
  thinks this may be to do with more people having access to group selector -
  probably not a problem now it is controlled by capability.
2011-11-04 13:57:08 +00:00
Sam Hemelryk
4125bdc139 MDL-21676 user: Implemented support for Gravatar profile pictures
Big thanks to the developers who put effort into this improvement:
* Jonathan Robson <jonathan.robson@remote-learner.net>
* Jonathan Harker <jonathan@catalyst.net.nz>
2011-09-20 12:41:48 +02:00
Petr Skoda
ce15d56ddb MDL-29029 move user upload to admin tools
AMOS BEGIN
 MOV [uploadpictures,core_admin],[uploadpictures,tool_uploaduser]
 MOV [uploadpictures_help,core_admin],[uploadpictures_help,tool_uploaduser]
 MOV [uploadusers,core_admin],[uploadusers,tool_uploaduser]
 MOV [uploadusers_help,core_admin],[uploadusers_help,tool_uploaduser]
 MOV [uploaduserspreview,core_admin],[uploaduserspreview,tool_uploaduser]
 MOV [uploadusersresult,core_admin],[uploadusersresult,tool_uploaduser]
 MOV [uucsvline,core_admin],[uucsvline,tool_uploaduser]
 MOV [userrenamed,core_admin],[userrenamed,tool_uploaduser]
 MOV [useraccountupdated,core_admin],[useraccountupdated,tool_uploaduser]
 MOV [useraccountuptodate,core_admin],[useraccountuptodate,tool_uploaduser]
 MOV [userdeleted,core_admin],[userdeleted,tool_uploaduser]
 MOV [uupasswordcron,core_admin],[uupasswordcron,tool_uploaduser]
 MOV [userscreated,core_admin],[userscreated,tool_uploaduser]
 MOV [usersupdated,core_admin],[usersupdated,tool_uploaduser]
 MOV [usersdeleted,core_admin],[usersdeleted,tool_uploaduser]
 MOV [deleteerrors,core_admin],[deleteerrors,tool_uploaduser]
 MOV [usersrenamed,core_admin],[usersrenamed,tool_uploaduser]
 MOV [renameerrors,core_admin],[renameerrors,tool_uploaduser]
 MOV [usersskipped,core_admin],[usersskipped,tool_uploaduser]
 MOV [usersweakpassword,core_admin],[usersweakpassword,tool_uploaduser]
 MOV [errors,core_admin],[errors,tool_uploaduser]
 MOV [csvdelimiter,core_admin],[csvdelimiter,tool_uploaduser]
 MOV [encoding,core_admin],[encoding,tool_uploaduser]
 MOV [rowpreviewnum,core_admin],[rowpreviewnum,tool_uploaduser]
 MOV [uuoptype_addinc,core_admin],[uuoptype_addinc,tool_uploaduser]
 MOV [uuoptype_addnew,core_admin],[uuoptype_addnew,tool_uploaduser]
 MOV [uuoptype_addupdate,core_admin],[uuoptype_addupdate,tool_uploaduser]
 MOV [uuoptype_update,core_admin],[uuoptype_update,tool_uploaduser]
 MOV [uuoptype,core_admin],[uuoptype,tool_uploaduser]
 MOV [uupasswordnew,core_admin],[uupasswordnew,tool_uploaduser]
 MOV [uupasswordold,core_admin],[uupasswordold,tool_uploaduser]
 MOV [nochanges,core_admin],[nochanges,tool_uploaduser]
 MOV [uuupdateall,core_admin],[uuupdateall,tool_uploaduser]
 MOV [uuupdatefromfile,core_admin],[uuupdatefromfile,tool_uploaduser]
 MOV [uuupdatemissing,core_admin],[uuupdatemissing,tool_uploaduser]
 MOV [uuupdatetype,core_admin],[uuupdatetype,tool_uploaduser]
 MOV [allowrenames,core_admin],[allowrenames,tool_uploaduser]
 MOV [allowdeletes,core_admin],[allowdeletes,tool_uploaduser]
 MOV [uunoemailduplicates,core_admin],[uunoemailduplicates,tool_uploaduser]
 MOV [uustandardusernames,core_admin],[uustandardusernames,tool_uploaduser]
 MOV [uubulk,core_admin],[uubulk,tool_uploaduser]
 MOV [uubulkall,core_admin],[uubulkall,tool_uploaduser]
 MOV [uubulknew,core_admin],[uubulknew,tool_uploaduser]
 MOV [uubulkupdated,core_admin],[uubulkupdated,tool_uploaduser]
 MOV [uulegacy1role,core_admin],[uulegacy1role,tool_uploaduser]
 MOV [uulegacy2role,core_admin],[uulegacy2role,tool_uploaduser]
 MOV [uulegacy3role,core_admin],[uulegacy3role,tool_uploaduser]
 MOV [defaultvalues,core_admin],[defaultvalues,tool_uploaduser]
 MOV [uuusernametemplate,core_admin],[uuusernametemplate,tool_uploaduser]
 MOV [requiredtemplate,core_admin],[requiredtemplate,tool_uploaduser]
 MOV [uploadpicture_baduserfield,core_admin],[uploadpicture_baduserfield,tool_uploaduser]
 MOV [uploadpicture_cannotmovezip,core_admin],[uploadpicture_cannotmovezip,tool_uploaduser]
 MOV [uploadpicture_cannotprocessdir,core_admin],[uploadpicture_cannotprocessdir,tool_uploaduser]
 MOV [uploadpicture_cannotsave,core_admin],[uploadpicture_cannotsave,tool_uploaduser]
 MOV [uploadpicture_cannotunzip,core_admin],[uploadpicture_cannotunzip,tool_uploaduser]
 MOV [uploadpicture_invalidfilename,core_admin],[uploadpicture_invalidfilename,tool_uploaduser]
 MOV [uploadpicture_overwrite,core_admin],[uploadpicture_overwrite,tool_uploaduser]
 MOV [uploadpicture_userfield,core_admin],[uploadpicture_userfield,tool_uploaduser]
 MOV [uploadpicture_usernotfound,core_admin],[uploadpicture_usernotfound,tool_uploaduser]
 MOV [uploadpicture_userskipped,core_admin],[uploadpicture_userskipped,tool_uploaduser]
 MOV [uploadpicture_userupdated,core_admin],[uploadpicture_userupdated,tool_uploaduser]
AMOS END
2011-09-18 11:00:39 +02:00
Petr Skoda
82053cb192 MDL-26805 cleanup default role selections
Frontpage role selection now allows only guest and frontpage roles. Default forntpage role is selected duuring install. Unused nodefaultuserrolelists option was removed completely. Coding style improvements.
2011-04-11 13:10:50 +02:00
Petr Skoda
25b355b623 MDL-26008 improved creator role description 2011-01-23 12:53:12 +01:00
Petr Skoda
f0a25c37c2 MDL-24432 changing the guest role explanation and renaming the text string to force new translation in all languages because the guest capabilities are completely changed in 2.0 2010-10-02 17:13:44 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Martin Dougiamas
89c510174e navigation MDL-22425 Moved 'defaulthomepage' to navigation settings from user policy page 2010-05-25 07:40:24 +00:00
David Mudrak
6c7a5df7a3 MDL-21695 Upload pictures and upload users - strings cleanup and fixing
Strings related to users uploading moved into admin.php component. Fixed
calling of new help strings. Fixed incorrect strings call.
The script also copies instructions from two previous commits as I
forgot that the commit must touch some string file to being parsed by
amos.

AMOS BEGIN
 HLP uploadusers3.html,[uploadusers_help,core_admin]
 HLP uploadusers2.html,[uploadusers_help,core_admin]
 HLP uploadusers.html,[uploadusers_help,core_admin]
 HLP uploadpictures.html,[uploadpictures_help,core_admin]
 MOV [uploadusers,core],[uploadusers,core_admin]
 MOV [uploadusers_help,core],[uploadusers_help,core_admin]
 HLP cookies.html,[cookiesenabled_help,core]
 HLP overrides.html,[overridepermissions_help,core_role]
 HLP permissions.html,[permission_help,core_role]
AMOS END
2010-05-17 15:16:33 +00:00
Sam Hemelryk
4766a50c19 navigation MDL-22425 Restructured navigation for the nth time plus performance tweaking and course display limit 2010-05-13 09:57:43 +00:00
Petr Skoda
864e2805d0 MDL-21781 integrating cohorts into UI - admin tree and list of categories in edit mode (there is no other better place which shows all categories imho) 2010-04-23 09:13:19 +00:00
Petr Skoda
370f10b7eb MDL-22061 converting auths to pluginname and deprecating old method for getting auth names
AMOS START
 MOV [auth_castitle,auth_cas],[pluginname,auth_cas]
 MOV [auth_dbtitle,auth_db],[pluginname,auth_db]
 MOV [auth_emailtitle,auth_email],[pluginname,auth_email]
 MOV [auth_fctitle,auth_fc],[pluginname,auth_fc]
 MOV [auth_imaptitle,auth_imap],[pluginname,auth_imap]
 MOV [auth_ldaptitle,auth_ldap],[pluginname,auth_ldap]
 MOV [auth_manualtitle,auth_manul],[pluginname,auth_manul]
 MOV [auth_mnettitle,auth_mnet],[pluginname,auth_mnet]
 MOV [auth_nntptitle,auth_nntp],[pluginname,auth_nntp]
 MOV [auth_nologintitle,auth_nologin],[pluginname,auth_nologin]
 MOV [auth_nonetitle,auth_none],[pluginname,auth_none]
 MOV [auth_pamtitle,auth_pam],[pluginname,auth_pam]
 MOV [auth_pop3title,auth_pop3],[pluginname,auth_pop3]
 MOV [auth_radiustitle,auth_radius],[pluginname,auth_radius]
 MOV [auth_shibbolethtitle,auth_shibboleth],[pluginname,auth_shibboleth]
 MOV [auth_webservicetitle,auth_webservice],[pluginname,auth_webservice]
AMOS END
2010-04-11 21:31:36 +00:00
Inaki
247b7dbb4a auth config: MDL-19053 Use the HTML editor to edit the login page authentication instructions
They are actually displayed as HTML, but they are edited through a plain
text area control instead.

Forward-ported from MOODLE_19_STABLE
2010-04-10 15:13:35 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda
11b749ca90 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:32:02 +00:00
tjhunt
31a9987770 install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function. 2009-06-24 09:17:56 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
jerome
2a274f2a93 authentication MDL-18273 Custom Authentication Plugin title can be retrieved from specific language file, merged from 19 2009-05-14 07:03:27 +00:00
skodak
551935cfc6 MDL-18476 fixed default guest role display hint; merged from MOODLE_19_STABLE 2009-05-08 12:23:22 +00:00
skodak
c6b4179c38 MDL-18338 option for hiding of groups in user profile 2009-04-09 08:29:51 +00:00
stronk7
1263a0ff1d MDL-18518 user firstaccess - added suport to display user->firstaccess. Credit goes to Anthony Borrow!
Merged from 19_STABLE
2009-03-11 11:22:55 +00:00
skodak
1caea91efb MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup 2009-01-11 09:41:48 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
tjhunt
44079dfe7a define roles: MDL-16966 go back to 'Define roles' in the admin menu, rather than 'Manage roles'
Define is a stronger verb than manage, and most of the things there are to do with defining roles. I keep finding myself looking for 'Define roles' in the menu when I am testing, which suggests changing the working in 1.9 does more harm than good.
2008-12-09 05:14:15 +00:00
skodak
53bd22559d MDL-17486 added option to make my courses list in user profile hidden 2008-12-01 22:06:33 +00:00
skodak
d86f4473e5 MDL-17372 moving the categories out of the if cap block - cap report needs to add page there 2008-11-30 14:09:24 +00:00
skodak
b63a6a6338 MDL-17372 admin reports: Added full plugin support for admin reports - fixed sorting regression, plugins now loaded as last category 2008-11-28 08:04:23 +00:00
skodak
d994ced22b MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring 2008-11-26 19:27:39 +00:00
tjhunt
a792ac1d7a define roles: MDL-16966 etc. more UI polishing
* Remove inconistently placed and unnecessary heading, moving help icon.
2008-11-21 06:19:01 +00:00
tjhunt
bed9cec80b define roles: MDL-16966 etc. polishing the new roles UI following a meeting with Martin.
* Move the show/hide advanced button a bit down the page.
* Improve save button caption when creating a role.
* Don't show defaults on the basic define roles screen.
* Explain the background shading on the advanced roels screen.
* Fix the problem with the risks link to Moodle docs.
* Help icon by the permissions column heading.
* Tables with rotated <th>s, make them vertical-align: bottom.
* Rename explain.php and explainhascapability.php to check.php and explain.php
* Tool tips on the number headers in the explain table.
* Explain table - role names were missing.
* Allow link_to_popup_window to work with full URLs.
2008-11-20 09:57:20 +00:00
tjhunt
8a8272b0f4 roles explanation: MDL-13538 Integrate into the roles tab bar, and improve wording a bit.
Also, commit the lang strings I missed last time.
2008-11-12 10:13:43 +00:00
tjhunt
99cd2f77bb user selection: MDL-16991 Improve the user selector used on the assign roles and group memebers pages - Create admin setting 2008-10-24 06:41:50 +00:00
skodak
bff34a6747 MDL-16365 domain restrictions are now optional when changing email address; merged from MOODLE_19_STABLE 2008-09-24 17:00:49 +00:00
tjhunt
61d04bcc46 MDL-15632 Wrong permission in the admin tree defininition mean that people with moodle/role:manage could not define role, and people with moodle/role:assign could not assign system roles. 2008-09-12 05:18:27 +00:00
skodak
ab37dc6031 MDL-14183 guest type role not allowed in defaultuserroleid anymore, because it was causing trouble in many places; admins must choose another role if guest role detected in this setting; merged from MOODLE_19_STABLE 2008-05-12 14:05:46 +00:00
nicolasconnault
5d6308d491 MDL-13796 Most of the recaptcha implementation is done. 2008-03-10 17:32:32 +00:00
moodler
b352b2e9c2 MDL-11752 Upload users form merged from 1.9 2008-02-21 05:24:18 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
skodak
fc4069d6da MFC: MDL-11996 fixed previous speedup commit for user operations in admin tree 2007-11-01 19:43:46 +00:00
skodak
a559f6306e MDL-11563 replaced hardcoded permission check from admin_tree_block 2007-10-28 22:35:00 +00:00
skodak
7d0c81b3ba MDL-11521 fixed problems when creating contexts and aprents does not exist yet
MDL-11527 fixed warning from $CFG->defaultuserroleid when installing and upgrading
+ removed reusing of previous contexts in has_capability() and get_context_instance()  because it was hiding critical errors when context was false, not specified, etc.
+ tweaked roles defaults - faster and defaults are applied when roles exist
+ SYSCONTEXTID may be specified in config.php to eliminate 1 db query
+ static context cache is now reset after rebuilding of context paths
+ path field in context table is now nullable - pg compatibility requirement
+ other minor fixes
2007-10-05 15:06:38 +00:00
toyomoyo
1bef49587d moving user bulk operations to admin/user/ 2007-08-15 05:30:49 +00:00
toyomoyo
68853d0dd3 MDL-10181, bulk user action and language pack fixes 2007-08-15 02:36:47 +00:00
mchurch
b069fbd9b3 MDL-10161 - Since get_course_... (users, students, teachers) is still being used by a number of functions (such as groups), trying to make them work with the SITE course the way they did pre-1.7, with $CFG->allusersarestudents set to TRUE. This will also have a configuration option that can be used to disable returning large amounts of users for the site course, if a site happens to be using this functionality and they have a large number of users. 2007-06-19 20:38:27 +00:00
tjhunt
71248ce89e MDL-9061 - Only show global assign roles warning if you are assigning roles in the global context! Also, change name of admin menu entry to reduce confusion. Merged from MOODLE_18_STABLE. 2007-03-28 16:57:22 +00:00
skodak
5e992f564b MDL-8867 Add setting to define role that is assigned to creators in new courses
MDL-8868 Set only minimal permissions for creator role

+ improved accesslib to handle changes of context levels in capability definitions

merged from MOODLE_18_STABLE
2007-03-14 21:42:38 +00:00
skodak
ebce32b5dd (MDL-8367) Add configuration option to select role for guest - guestroleid 2007-02-01 10:24:26 +00:00
skodak
c785d40ac3 MDL-8373 Add new predefined role "Authenticated user" for all logged in users 2007-01-31 21:05:32 +00:00
skodak
8e1f75acfb MDL-8096 loginhttps fixes for new advancededit form 2007-01-26 21:45:50 +00:00
skodak
e2cfb488be MDL-8096 - added proper trimming of usernames; site:config capability is now neede to change definition of custom profile fields 2007-01-26 16:19:34 +00:00