MDL-31830 category management: Fix coding_error when moving 0 courses
Merge branch 'MDL-41792_intmaster' of https://github.com/markn86/moodle
NOBUG: Fixed file access permissions
weekly release 2.6dev
MDL-40045 auth: removed unnecessary add_to_log calls

Both LDAP and Shibboleth call complete_user_login which triggers
a user_loggedin event that handles the legacy call to add_to_log.
MDL-40045 auth: introduced PHPUnit test to ensure logging in via LDAP triggers an event
MDL-40045 user: replaced add_to_log call when a user profile is viewed with an event
MDL-40045 user: replaced add_to_log call when the user list is viewed with an event
MDL-40045 login: removed add_to_log call when a user updates their password

This add_to_log call is not being replaced by a user_updated event as the
call to $userauth->user_update_password should (and does in the case of
manual authentication - see MDL-41170) do this already when the password
is changed in the user table. If the authentication plugin is changing
the password externally then there is no need to call the user_updated
event as this should only be called whenever any update is made on the
user table.