354 Commits

Author SHA1 Message Date
Marina Glancy
3c2ed2d7ce MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-13 10:12:17 +08:00
Petr Skoda
bb6ccfa53d MDL-30625 full support for main admin 2011-12-07 11:18:10 +01:00
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
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Eloy Lafuente (stronk7)
6e9cd6698e MDL-27723 whitespace cleanup of admin directory 2011-06-05 19:35:42 +02:00
Andrew Davis (andyjdavis)
017c440bb4 MDL-27460 roles: now closing a record set that wasnt being closed 2011-05-10 17:01:08 +08:00
Petr Skoda
cf717dc26b MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:15:01 +02:00
Petr Skoda
c102060deb MDL-26951 fix removing of archetype from role 2011-03-27 16:04:33 +02:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
David Mudrak
29cbe43189 MDL-13481 Strings fullname and shortname are now deprecated
This is a final cleanup commit of fullname and shortname issue. All
places where these strings were detected yet have been replaced with
proper fullnamecourse or fullnameuser or some other context specific
string.

AMOS BEGIN
 CPY [fullname,core],[outcomefullname,core_grades]
 CPY [shortname,core],[outcomeshortname,core_grades]
 CPY [name,core],[rolefullname,core_role]
 CPY [shortname,core],[roleshortname,core_role]
AMOS END
2011-02-28 09:42:50 +01:00
Tomasz Muras
936a0ae07e roles/assign MDL-24299 Fix back link
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-03 21:09:32 +00:00
Sam Marshall
6397deaec8 Roles MDL-23986 Added help to role archetype 2010-11-09 12:41:29 +00:00
Petr Skoda
155ef38baa MDL-24761 we can safely reset all roles now 2010-10-19 10:22:59 +00:00
Sam Hemelryk
f0af25381d permissions MDL-24614 Fixed JS error with cookie handling on the permission filter 2010-10-12 01:15:43 +00:00
Petr Skoda
01beeae993 MDL-24505 limit max number of admin candidates 2010-10-04 07:50:12 +00:00
Petr Skoda
a226a972f7 MDL-24321 switching to stdClass in /admin/ and / 2010-09-21 08:44:02 +00:00
Sam Hemelryk
87b4981b4a enrolments MDL-24317 Permission filter now remembers what you type into it. 2010-09-21 06:09:14 +00:00
Petr Skoda
eab8ed9fb7 fixed a few spelling errors in /admin/ 2010-09-17 10:27:26 +00:00
Petr Skoda
5d354ded1a standardized PHPDocs package info 2010-09-06 11:17:43 +00:00
Petr Skoda
cc1eebbb34 MDL-23184 role description accepts any HTML, we have to trust people that can edit roles anyway 2010-09-02 17:55:22 +00:00
Petr Skoda
d44df69b23 MDL-23774 only local users can be admins - more security and fewer "lost admin account" problems 2010-08-12 08:20:59 +00:00
Sam Hemelryk
bd536f5209 admin-roles MDL-22859 Set pagelayout so blocks are displayed. 2010-07-23 02:09:03 +00:00
Petr Skoda
be42eca7a4 MDL-23444 fixed missing file include in user selector ajax 2010-07-21 07:44:10 +00:00
aparup
da904f85e1 administration MDL-23445 fixed broken sql query 2010-07-21 03:54:26 +00:00
Petr Skoda
8a27af4112 MDL-23048 applying the same frontpage logic on all permissions pages 2010-07-13 21:20:48 +00:00
Petr Skoda
946191f09c minor coding style tweaks 2010-07-13 21:18:37 +00:00
Petr Skoda
ba571a898d fixed regression - missing syscontext 2010-07-13 21:02:01 +00:00
Petr Skoda
24d5b996dc MDL-23048 reworked frontpage exceptions 2010-07-13 20:54:16 +00:00
Dan Marsden
a21ef213e4 MDL-23218 wrong admin external page id 2010-07-12 23:48:45 +00:00
aparup
362db01ab5 Roles MDL-23048 fixed CONTEXT_COURSECAT roles editing being titled as 'front page roles' 2010-07-08 03:57:03 +00:00
David Mudrak
ec70045cf8 NOBUG: Missing comma in SQL 2010-06-21 21:57:24 +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
David Mudrak
52236f053b MDL-21695 Permissions and overrides help strings
AMOS BEGIN
 HLP overrides.html,[overridepermissions_help,core_role]
 HLP permissions.html,[permission_help,core_role]
AMOS END
2010-05-17 12:43:02 +00:00
Martin Dougiamas
99cca8470e MDL-19124 Continued misc user profile cleanups
- fixed user styles in base theme
    - added new divs for better control on user profile and user index pages
    - reduced data on course user profiles down to minimum
    - removed user/tabs.php completely and all uses of it
    - changed default user icon pix to something very bland (bye bye smiley cake)
2010-05-16 08:21:12 +00:00
David Mudrak
849c94bed8 Fixing a typo in get_string() component 2010-05-13 13:40:56 +00:00
David Mudrak
27d1a27c21 MDL-21695 Migrating the usage of root help files so far re-worded
AMOS BEGIN
 HLP forcepasswordchange.html,[forcepasswordchange_help,core]
 HLP interestslist.html,[interestslist_help,core]
 HLP newpassword.html,[newpassword_help,core]
 HLP permissions.html,[permissions_help,core_role]
 HLP picture.html,[newpicture_help,core]
 HLP picture.html,[newpicture_help,core_group]
 HLP roles.html,[roles_help,core_role]
AMOS END
2010-05-06 21:27:58 +00:00
Martin Dougiamas
5435c9dcc4 help strings MDL-21695 changed _hlp to _help and fixed help.php to format those strings properly 2010-04-23 07:46:35 +00:00
Sam Hemelryk
ba9dc077c4 roles MDL-22126 Fixed up usage of admin/roles/tags.php 2010-04-21 02:43:02 +00:00
Petr Skoda
596509e431 MDL-21695 renaming ->help_icon() to old_help_icon() and going to introduce new help_icon() with new parameters and detailed debugging - hopefully this will help during the conversion to new help 2010-04-13 20:34:27 +00:00
Martin Dougiamas
511cde1b1d role/assign gui MDL-21655 Fixed regressions in GUI (missing heading and title on page) 2010-04-05 07:54:14 +00:00
Petr Skoda
a8bad673aa MDL-21655 improved access control 2010-03-31 08:42:36 +00:00
Petr Skoda
413ba14194 MDL-21655 whitespace fixed 2010-03-31 08:34:36 +00:00
Petr Skoda
cc3c90ac40 MDL-21655 whitespace fixed, better access control and moodle_url cleanup 2010-03-31 08:33:17 +00:00
Petr Skoda
86758a5c60 MDL-21655 improved access control 2010-03-31 08:23:33 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +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
jerome mouneyrac
bc5048f640 role admin MDL-21920 missing moodle_url() into single_button call 2010-03-25 08:47:25 +00:00
Sam Hemelryk
456e4852c6 user-selector MDL-21537 Refactored JS to make use of YUI3
*  YUI3 used instead of YUI2, converted all YUI2 components to YUI3 equivalents.
 * Renamed user/selector/script.js to module.js
 * Converted uses of the the user selector to YUI3 + the new events
2010-03-23 07:38:32 +00:00
David Mudrak
16be897441 MDL-21652 html_table rendering refactored
* class html_component does not exist any more
* class html_table rendered via html_writer::table()
* html_table, html_table_row and html_table_cell have public $attributes property to set their CSS classes
* dropped rotateheaders feature, should be added again after more research of possible ways (<svg> is not nice IMHO)
* dropped possibility to define CSS classes for table heading, body and footer - can be easily done and better done using just table class and context
2010-03-20 22:15:54 +00:00
Petr Skoda
01a2ce80ec MDL-21710, MDL-21711 new permissions evaluation and overriding UI 2010-03-07 09:28:54 +00:00