Commit Graph

2290 Commits

Author SHA1 Message Date
Jun Pataleta 07249cbb3a Merge branch 'MDL-62939-master-cleanhtmluserdesc' of git://github.com/mudrd8mz/moodle 2018-07-24 11:58:38 +08:00
Mihail Geshoski 204178d646 MDL-61707 authentication: Remove presignup session upon user signup 2018-07-23 09:33:08 +08:00
David Monllao a02f330b5d Merge branch 'MDL-62663' of https://github.com/andrewhancox/moodle 2018-07-19 08:46:43 +08:00
David Mudrák 067d0efe85 MDL-62939 user: Fix field type of the user profile description
As this is an editor element field, the it is supposed to be PARAM_RAW.
Otherwise it cleans-up certain non-HTML syntax such as Markdown
blockquote characters.
2018-07-18 14:27:14 +02:00
sarjona 7fde83584f MDL-60924 core_user: Hold participant filters when clicking some link 2018-07-16 18:03:12 +02:00
Andrew Hancox 7068dd3990 MDL-62663 core_user: Enforce viewalldetails capability when editing user 2018-07-10 13:28:24 +01:00
Michael Hawkins c157e137ee MDL-62618 user: Display full names consistently on users page 2018-07-05 10:08:33 +08:00
Luca Bösch 78f6d02b8c MDL-44646 administration: Users can be filtered by course enrollment 2018-06-20 06:48:59 +02:00
David Monllao a7fb68f27f Merge branch 'MDL-62273-master' of https://github.com/sammarshallou/moodle 2018-06-06 11:16:41 +02:00
Luca Bösch 4a42d3decd MDL-62605 core_user: course name filter in unenrol modal. 2018-06-05 07:55:58 +02:00
sam marshall bef86c669c MDL-62273 Profile: Callback allows plugins to control profile access
Adds a new callback, <plugin>_control_view_profile. Plugins may
return core_user::VIEWPROFILE_PREVENT to prevent access,
core_user::VIEWPROFILE_DO_NOT_PREVENT to make no change, or
core_user::VIEWPROFILE_FORCE_ALLOW to allow access even when Moodle
would normally prevent it.

This allows third-party plugins to restrict (or allow) access to
profile pages in response to arbitrary business logic.
2018-06-01 09:59:01 +01:00
Tim Hunt 5359c517d0 MDL-62440 participants: out-of-memory is many site-wide role assigns 2018-05-17 10:42:31 +01:00
Marina Glancy d1620c57f9 MDL-62147 privacy: corrections to tables, temporary tables 2018-05-16 12:57:19 +08:00
David Monllao 7f9b187994 MDL-62447 user: Fix component name typo 2018-05-15 10:41:57 +02:00
David Monllao 99a080f12a Merge branch 'MDL-62361' of git://github.com/stronk7/moodle 2018-05-10 09:17:25 +08:00
Eloy Lafuente (stronk7) 57ea6753d3 MDL-62361 versions: bump all versions and requires near release
version = 2018051400 release version
requires= 2018050800 current beta+ (week4roll1) version
2018-05-09 02:46:30 +02:00
David Monllao 40cd9b66a6 Merge branch 'wip-MDL-61814-master' of git://github.com/abgreeve/moodle 2018-05-08 17:17:47 +02:00
Adrian Greeve c49f309204 MDL-61814 core_user: Implement privacy system for user. 2018-05-08 11:44:37 +08:00
Jake Dallimore 1c73a11a20 Merge branch 'MDL-62046-master' of git://github.com/mihailges/moodle 2018-05-04 10:26:41 +08:00
Jake Dallimore 6ef8a82599 Merge branch 'MDL-62032-master' of git://github.com/mihailges/moodle 2018-05-04 09:56:37 +08:00
Jake Dallimore e46c60db2a Merge branch 'MDL-62030-master' of git://github.com/mihailges/moodle 2018-05-04 09:51:39 +08:00
Mihail Geshoski fd4c7d6461 MDL-62046 profilefield_textarea: Add privacy files and unit tests 2018-05-03 16:25:58 +08:00
Mihail Geshoski cf6a77fbbb MDL-62032 profilefield_text: Add privacy files and unit tests 2018-05-03 16:07:55 +08:00
Mihail Geshoski a15712ef6e MDL-62030 profilefield_menu: Add privacy files and unit tests 2018-05-03 15:51:52 +08:00
Mihail Geshoski 8ddb08c9d9 MDL-62007 profilefield_checkbox: Modify privacy provider 2018-05-03 15:27:50 +08:00
Mihail Geshoski 76b61aa064 MDL-62007 profilefield_datetime: Add privacy files and unit tests 2018-05-03 14:57:41 +08:00
Eloy Lafuente (stronk7) c4a5c8440a MDL-61993 profilefield_checkbox: take rid of oracle reserved word 2018-04-27 10:41:46 +02:00
Mihail Geshoski 079114d70b MDL-61993 profilefield_checkbox: Add privacy files and unit tests 2018-04-26 10:28:14 +08:00
Bas Brands 3ec69c2ece MDL-56511 theme_boost: Update to Bootstrap 4 stable
Behat fixes by David Monllao <davidm@moodle.com>
    - Blocks
    - Modals
    - Messaging styling
    - Breadcrumb
    - Pagination
    - Course & categories management
2018-04-18 09:31:53 +08:00
Eloy Lafuente (stronk7) 8c46d204a1 MDL-60548 tests: Get tests passing
This includes:

- changing all usernames in feature to lowercase, for cross-db passing. Fixes:
  - user/tests/behat/set_email_display.feature
- ensure that course_enrolment_manager::get_potential_users() and
  external always returns user->maildisplay attribute, so email
  visibility can be calculated by user_get_user_details(). Fixes:
  - enrol/tests/behat/enrol_user.feature
  - blocks/news_items/tests/behat/display_news.feature
  - course/tests/behat/course_creation.feature
2018-04-11 17:15:38 +02:00
Eloy Lafuente (stronk7) 2f27dca60d Merge branch 'MDL-60548-master-v4' of https://github.com/Dave-B/moodle 2018-04-10 17:14:46 +02:00
Sara Arjona 3449816e7f MDL-61736 user: Show correct status when enrol method is disabled
When disabling an enrolment method, the user status will be displayed
as "Not current" instead of "Active".
2018-04-09 08:45:57 +02:00
Farhan Karmali 6afa07edd1 MDL-61183 user: Added total participants count on paricipants page 2018-04-04 07:56:38 +05:30
David Mudrák 0c98acefc1 MDL-61658 user: Fix displaying of user's country name
In these cases we want to use the method get_list_of_countries() to
obtain translated names of all potential country codes. The country code
is already there in the database. So it does not matter if the country
is among those whitelisted in $CFG->allcountrycodes - we want to see its
name anyway.
2018-03-21 18:17:47 +01:00
Marina Glancy 1727c939ba MDL-61477 admin: sitepolicy handler API
- Define sitepolicy handler manager class, base class and the core handler
- Allow to set a plugin as sitepolicyhandler that implements the sitepolicy API
- Modify web services to return information from the 3rd party handler instead of core if needed
2018-03-15 11:32:55 +08:00
David Mudrák 0bdc578567 MDL-61477 admin: Allow plugins to act as alternate policy handlers
The patch introduces a new site setting 'sitepolicyhandler' that can be
either empty or contain a plugin component name. If it is empty, the
site policy feature keeps working as before and the core keeps the
control over it.

If a plugin is specified, it is expected to implement the callback
'site_policy_handler' in its lib.php file. The callback should return a
URL to a script where the user can accept the site policies. The plugin
itself is responsible for setting the 'policyagreed' flag in the users
table. The callback may return an empty value, in which case the user
can continue using the site without being redirected.

The patch adds support for a new pre-config flag NO_SITEPOLICY_CHECK.
This constant should be defined and set to true if we should not check
the user's policyagreed status during the require_login().

This is for pages where the user actually accepts the site policies and
helps to avoid the redirect loop.
2018-03-15 09:31:41 +08:00
Andrew Nicols 3452ea4265 Merge branch 'MDL-60828-master' of git://github.com/sarjona/moodle 2018-03-13 14:18:59 +08:00
Andrew Nicols d300abab0e Merge branch 'MDL-61365-master' of git://github.com/sarjona/moodle 2018-03-12 13:44:17 +08:00
Sara Arjona bb4a79234b MDL-60828 user: Reset current page when filtering/searching users
Added baseurl parameter to core_user\output\unified_filter to let specify
different URL, instead of using always $PAGE->url.
2018-03-09 08:30:24 +01:00
Jan Dageförde aa949cb2f9 MDL-61549 user: Remove $already columns because none were loaded yet 2018-02-27 14:47:44 +01:00
M Kassaei 7ce538be0f MDL-61402 Core: Add a cancel button to edit profile page 2018-02-16 09:34:23 +00:00
Sara Arjona 58af736dec MDL-61365 group: Fix default filter when group mode is visible 2018-02-07 18:02:56 +01:00
David Monllao 02e6350222 Merge branch 'MDL-61027-master' of git://github.com/rezaies/moodle 2018-02-05 11:56:18 +01:00
David Monllao 1cc79637c7 Merge branch 'MDL-42764_master' of git://github.com/markn86/moodle 2018-02-05 11:18:34 +01:00
David Monllao e9fd486eb6 Merge branch 'MDL-60646-master' of git://github.com/junpataleta/moodle 2018-02-01 10:33:16 +08:00
Mark Nelson b02295039e MDL-42764 core: added missing string definition
Also changed the string index so it was not
vague. The index 'emailempty' appears as if it
could belong to a validation method for a form.
2018-01-29 19:07:57 +08:00
Igor Sazonov 358b10a337 MDL-58410 user: add support for alternative name search
The solution about searching all external names fields (middlename etc) from course enrolment page (enrolled and enrolling pages)
2018-01-24 11:15:45 +08:00
Shamim Rezaie 425817793a MDL-61027 calendar: Fix datetime profile field issue with non-Gregorian 2018-01-22 18:47:06 +11:00
Jun Pataleta 4369677af2 MDL-60646 user_portfolio: Fix action icons in Show / hide column
* Refactor the code to make it look cleaner and easier to read.
* Fixed incorrect alt-text for the configure icon.
* Fixed missing alt-text for show/hide icon.
2018-01-18 15:26:21 +08:00
David Balch d2bba97d77 MDL-60548 profile: Clarify some users can always see email addresses. 2018-01-15 12:21:09 +00:00