114427 Commits

Author SHA1 Message Date
Paul Holden
23a61db0f0 MDL-82392 blocks: consistent cleaning of block instance names. 2024-08-07 04:13:49 +00:00
Paul Holden
d3d580671a MDL-82261 mod_feedback: ensure only non-respondents can be messaged. 2024-08-07 04:13:49 +00:00
Paul Holden
8304649791 MDL-82390 badges: correct context check when deleting badges. 2024-08-07 04:13:49 +00:00
meirzamoodle
c8c3b17cd2 MDL-82136 curl: Send credentials to redirect URL if allowed
Curl has the option CURLOPT_UNRESTRICTED_AUTH. If true, curl will send
the credentials to a different host. If false, they will not be sent.

CURLOPT_UNRESTRICTED_AUTH can only work if the CURLOPT_FOLLOWLOCATION
option is true. The filelib forces the CURLOPT_FOLLOWLOCATION option
to be false, because all redirects are emulated at the PHP level. So,
in this case, the CURLOPT_UNRESTRICTED_AUTH option is only being used
in our logic and will not work as you might expect it to.

This patch works almost the same as CURLOPT_UNRESTRICTED_AUTH in ideal
conditions. It will check whether the host is different. If so, the
system will check what value CURLOPT_UNRESTRICTED_AUTH has. If it is
not specified, then by default, it will be false. If false, then
credentials will not be sent.
2024-08-07 04:13:49 +00:00
Paul Holden
3e5569a61a MDL-82262 mod_feedback: fix broken bulk message sesskey checks. 2024-08-07 04:13:49 +00:00
Paul Holden
80782f8907 MDL-64984 mod_glossary: capability check when restoring global type. 2024-08-07 04:13:49 +00:00
David Woloszyn
51af50ade5 MDL-81951 communication_matrix: Fix suspended users ignored bug 2024-08-07 04:13:49 +00:00
David Woloszyn
b683a38423 MDL-81951 communication_matrix: New trait for power levels
A more reliable way of obtaining room power levels is now used in the
new trait get_room_power_levels_v3. This makes
get_room_powerlevels_from_sync_v3 less needed, but not necessarily
redundant. The names of the containing methods have been adjusted to
make better sense of which trait they belong to.
2024-08-07 04:13:49 +00:00
Ilya Tregubov
54dc1112cb MDL-79541 core_grades: Add missing user info to search services.
Seems just fullname is not enough. So added all name fields.
2024-08-07 04:13:49 +00:00
Ilya Tregubov
421c0608e8 MDL-79541 core_grades: Hidden user fields check for search.
If some user profile fields are hidden on some grade reports
users without permission were able to see those.
2024-08-07 04:13:49 +00:00
Huong Nguyen
7678c3f41c
Merge branch 'MDL-82643-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE 2024-08-07 10:45:41 +07:00
Huong Nguyen
a3573087d1
Merge branch 'MDL-82611-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE 2024-08-07 10:25:18 +07:00
Huong Nguyen
f809e209e3
Merge branch 'MDL-82620-404' of https://github.com/ericmerrill/moodle into MOODLE_404_STABLE 2024-08-07 10:20:38 +07:00
Jun Pataleta
59a377abbe
Merge branch 'MDL-82606_404' of https://github.com/timhunt/moodle into MOODLE_404_STABLE 2024-08-07 11:12:05 +08:00
Tim Hunt
83a24b0e9f MDL-82606 filterlib: pass a row limit to recordset for performance
On Postgres, at least, get_recordset_sql performs signficantly worse
if you don't pass a limit. So, we add a limit to the query, but one
that in enormously too large, so it should never have an effect.
(And, there is code to check we never hit the limit, to avoid subtle bugs.)
2024-08-06 10:47:24 +01:00
Jun Pataleta
7ffbd04d35
Merge branch 'MDL-82344-404' of https://github.com/snake/moodle into MOODLE_404_STABLE 2024-08-06 17:26:44 +08:00
Jun Pataleta
19284518d1
Merge branch 'MDL-79568-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE 2024-08-06 17:20:26 +08:00
Paul Holden
dec2143d73
MDL-79568 javascript: remove lang parameter from legacy string calls. 2024-08-05 08:33:19 +01:00
Ilya Tregubov
abd4203547 Merge branch 'MDL-82171-muc-sited-MOODLE_404_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_404_STABLE 2024-08-05 11:18:59 +08:00
Shamim Rezaie
28922ba889 Merge branch 'MDL-82384-MOODLE_404_STABLE' of https://github.com/jwcatau/moodle into MOODLE_404_STABLE 2024-08-03 23:55:36 +10:00
Ilya Tregubov
e0381615aa weekly release 4.4.1+ 2024-08-02 09:30:45 +08:00
Ilya Tregubov
349916ae5f Merge branch 'install_404_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_404_STABLE 2024-08-02 09:30:42 +08:00
James Williams
3ab8986eb0 MDL-82384 core: Alter logic to only purge muc OR course caches. 2024-08-01 18:53:18 +10:00
Huong Nguyen
be4d15a856
Merge branch 'MDL-80064-404' of https://github.com/meirzamoodle/moodle into MOODLE_404_STABLE 2024-08-01 10:41:43 +07:00
Huong Nguyen
495f38ff3f
Merge branch 'MDL-82598-404' of https://github.com/lameze/moodle into MOODLE_404_STABLE 2024-08-01 10:26:52 +07:00
Huong Nguyen
ef3d7a9d18
MDL-80017 core_grades: Move upgrade note 2024-08-01 09:15:26 +07:00
Huong Nguyen
1970d836c6
Merge branch 'MDL-80017-404' of https://github.com/jleyva/moodle into MOODLE_404_STABLE 2024-08-01 09:12:12 +07:00
Ilya Tregubov
96f76208d1 Merge branch 'MDL-81689_MOODLE_404_STABLE' of https://github.com/rzhtwberlin/moodle into MOODLE_404_STABLE 2024-08-01 09:59:26 +08:00
Jun Pataleta
2fb409a999
Merge branch 'MDL-82286-404' of https://github.com/daledavies/moodle into MOODLE_404_STABLE 2024-08-01 09:47:11 +08:00
AMOS bot
86afac09e9 Automatically generated installer lang files 2024-08-01 00:07:35 +00:00
Sara Arjona
45fbccf625
Merge branch 'MDL-72876-404' of https://github.com/junpataleta/moodle into MOODLE_404_STABLE 2024-07-31 17:15:19 +02:00
Sara Arjona
2c2cda1660
Merge branch 'MDL-82397-404' of https://github.com/lucaboesch/moodle into MOODLE_404_STABLE 2024-07-31 16:59:27 +02:00
Sara Arjona
e6176d6dba
Merge branch 'MDL-82596-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE 2024-07-31 16:46:06 +02:00
Dale Davies
0be064b328 MDL-82286 quiz_accessrule: Add SEB config test for floating point number
This tests several variations of SEB config files, to ensure Moodle
is able to parse them and generate a config key hash that matches
what SEB expects.

Additional values have been added to the unencrypted_win_233.seb
config file to cover the existence of floating point values,
ensuring they are serialized correctly. The config hash value
has been updated in real_ck_hash_provider to reflect the change.

Also added coverage information to the test case class docblock.
2024-07-31 11:17:26 +01:00
Jun Pataleta
5b68c82eb2
Merge branch 'MDL-82187-single-button-404' of https://github.com/djarran/moodle into MOODLE_404_STABLE 2024-07-31 17:21:32 +08:00
Simey Lameze
971b7b6eb7 MDL-82598 behat: improve example submission test 2024-07-31 09:05:07 +08:00
AMOS bot
ad698059ae Automatically generated installer lang files 2024-07-31 00:07:32 +00:00
Paul Holden
1114ab3822
MDL-82643 enrol_self: clarify validation of notification threshold. 2024-07-30 15:48:07 +01:00
Jun Pataleta
b150085bb1
MDL-72876 theme_classic: Enclose welcome message in Bootstrap card 2024-07-30 19:40:21 +08:00
meirzamoodle
f0dd2ae1f5 MDL-80064 authentication: password can be null
The Open ID Connect plugin uses null for the password,
which makes the internal password update fail to proceed.
Allowing null resolved the problem.

As a note, there is a potential issue if the authentication method has
a false return for the prevent_local_password because it will trigger
the hash_internal_user_password() where  the $password can not be null.
Since this only addresses the oauth2 issue, we should ignore it.
2024-07-29 15:50:08 +07:00
Jake Dallimore
d34d87f45a
MDL-82344 mod_lti: relax content selection validation in instance form
This was added in MDL-78916 in 4.3 but makes configuring a generic
launch to the default tool URL impossible, since a content item must be
selected. This fix:
- Makes this element optional again, which allows teachers to choose
whether a given instance launches into selected content, or launches
the default tool URL.
- Changes the style to btn-secondary, given it's now optional again
2024-07-29 13:06:11 +08:00
Andrew Nicols
abd665d545
Merge branch 'MDL-82250-404' of https://github.com/lameze/moodle into MOODLE_404_STABLE 2024-07-29 11:47:56 +08:00
Ilya Tregubov
5bcdefb516 Merge branch 'MDL-80345-404' of https://github.com/MartinGauk/moodle into MOODLE_404_STABLE 2024-07-29 11:33:22 +08:00
Paul Holden
d69212b895
MDL-82596 behat: switch manual private files upload to generator. 2024-07-28 19:16:57 +01:00
Paul Holden
0223b0fefb
MDL-82596 behat: tidy up existing usage of private files generator.
Filename is no longer required (since 83db25c330), given it never
did anything so can be removed. Requiring the "Private files" block
also isn't necessary since original switch to generator methods.
2024-07-28 19:13:39 +01:00
Paul Holden
3452312c8c
MDL-82611 mod_assign: capability check before exporting grade link. 2024-07-26 21:20:40 +01:00
Eric Merrill
e884c04350 MDL-82620 completion: Make enrol duration comp happen at the right time 2024-07-26 14:11:53 -04:00
Luca Bösch
a1dcb85347 MDL-82397 block_recentlyaccesseditems: Assure space between items. 2024-07-26 18:23:48 +02:00
Johannes Burk
30bae49637 MDL-81689 tests: Check task DB record for nextruntime 2024-07-26 10:36:29 +02:00
Johannes Burk
0ae247b51f MDL-81689 tasks: add unit test to check for the bug 2024-07-26 10:36:29 +02:00