Sara Arjona
7db1a61a72
Merge branch 'MDL-69050-310-allowlist' of git://github.com/mudrd8mz/moodle into MOODLE_310_STABLE
2020-10-01 14:51:12 +02:00
Sara Arjona
e2a73965ca
Merge branch 'MDL-68098-310' of git://github.com/dpalou/moodle into MOODLE_310_STABLE
2020-10-01 12:56:23 +02:00
Juan Leyva
c0af823086
MDL-68845 calendar: Move duplicated code to function
2020-09-29 10:54:05 +02:00
David Mudrák
19fe7f27a8
MDL-69050 lang: Improve the wording of the comments
...
Stop using the terms whitelist/blacklist when used to allow/deny things.
2020-09-24 19:32:40 +02:00
Dani Palou
f4bdb898c7
MDL-68098 ws: Fix WebServices broken by filters HTML
2020-09-23 12:08:40 +02:00
Andrew Nicols
ca6cf0bd21
MDL-68974 calendar: Use page context for block check
2020-09-08 08:54:33 +02:00
Andrew Nicols
7d990ee185
MDL-68974 blocks: Check permission before generating content
2020-09-08 08:54:33 +02:00
Mikhail Golenkov
364d4caeec
MDL-66716 calendar: Add usermidnight property for events.
2020-08-10 11:36:29 +10:00
Marina Glancy
d268c5bac3
MDL-58866 core_calendar: separate color for other events, icons
2020-05-19 19:04:15 +02:00
Marina Glancy
1a972b06f1
MDL-58866 core_calendar: allow component events
2020-05-19 19:04:13 +02:00
Simey Lameze
26b683e798
MDL-66871 calendar: fix deprecated parameter in the phpDoc
2020-01-06 10:36:42 +08:00
Simey Lameze
5b3b975e3f
MDL-66871 calendar: fix ics importing logic
2020-01-06 09:49:59 +08:00
Eloy Lafuente (stronk7)
21418c9942
Merge branch 'MDL-67300-master' of https://github.com/sammarshallou/moodle
...
(fix trailing whitespace case)
2019-11-26 22:30:05 +01:00
sam marshall
584500d5ba
MDL-67300 Calendar: Inconsistent behaviour of managegroupentries
...
When calling the calendar_get_allowed_event_types function with
no course id, it is supposed to return true if you have the
relevant permissions in any course.
For users who have the managegroupentries permission, this was not
the case - even though it works correctly if you call the function
with a supplied course id.
This change makes behaviour with and without a supplied course id
consistent.
2019-11-21 10:51:35 +00:00
Pau Ferrer Ocaña
375d82cafc
MDL-66612 calendar: Change global events to site events
...
AMOS BEGIN
CPY [category,moodle],[category,calendar]
CPY [site,notes],[eventtypesite,calendar]
CPY [site,moodle],[site,calendar]
MOV [typesite,moodle],[siteevent,calendar]
AMOS END
2019-10-21 09:33:01 +02:00
Simey Lameze
ec482557a8
MDL-61450 calendar: fix course event type permissions
2019-10-03 13:20:33 +08:00
David Matamoros
21ad9531d0
MDL-66354 core_calendar: Notices in error.log on calendar events
2019-09-25 09:08:41 +02:00
Simey Lameze
2d132fda75
MDL-56223 calendar: show the number of deleted events
2019-09-05 17:15:14 +08:00
Simey Lameze
d5727ed3ba
MDL-56223 calendar: skip events updating if nothing has changed
2019-09-05 16:18:37 +08:00
Andrew Nicols
c188ddfe93
Merge branch 'MDL-59524-master' of git://github.com/cescobedo/moodle
2019-08-13 12:56:32 +08:00
Simey Lameze
4d98566939
MDL-66008 core_calendar: fix behat failures
2019-08-13 09:50:48 +08:00
Simey Lameze
bcd0583e68
MDL-66008 calendar: Remove duplicated call to library funciton
...
A duplicated call to calendar_get_allowed_event_types has
been removed.
2019-08-12 14:49:40 +08:00
cescobedo
0504254f1d
MDL-59524 general: Remove strings deprecated in 3.4
2019-08-12 00:13:08 +02:00
Simey Lameze
26d6404315
MDL-65958 calendar: students should not see course event type
2019-07-03 20:28:09 +08:00
Simey Lameze
419b868ae7
MDL-65707 calendar: set the correct event type on site calendar
2019-06-25 09:50:22 +08:00
Simey Lameze
dbccdae8f5
MDL-65671 calendar: add the calendar view selector
2019-06-10 13:09:57 +08:00
Simey Lameze
2b815157c9
MDL-59650 core_calendar: remove limit from calendar UI
2019-05-21 15:22:13 +08:00
Simey Lameze
e099259a46
MDL-59650 core_calendar: remove limit from event exporter
2019-05-21 15:22:09 +08:00
Simey Lameze
a8dcc212be
MDL-65262 core_calendar: change location param type
2019-05-02 11:29:42 +08:00
Jun Pataleta
92451f3a8a
Merge branch 'MDL-65206-master' of git://github.com/tobiasreischmann/moodle
2019-04-29 12:44:33 +08:00
Tobias Reischmann
90e331bcdc
MDL-65206 calendar: Enable update of location in repeated events.
...
The location is now updated in repeated events if it is altered in one
event and the option 'Also apply changes to the other X events in this
repeat series' is selected. If the location is not altered but some
other details, then manual changes of the location in other events
will not be overriden.
2019-03-29 14:13:43 +01:00
Marina Glancy
beff3806d6
MDL-10965 courses: capability to browse course list
2019-04-10 12:35:28 +02:00
David Monllaó
982fef46f4
MDL-64783 analytics: Activities due insight forwards to calendar
...
The patch includes changes applied after the peer review.
2019-04-09 00:29:57 +02:00
Shamim Rezaie
c51a157755
MDL-64830 core_calendar: Do cap check on event edit form
2019-03-05 04:24:53 +01:00
Simey Lameze
b13fe83adb
MDL-64214 core_calendar: fix event types form element handling
2018-11-29 13:59:32 +08:00
Luca Bösch
7294f412fc
MDL-63241 calendar: Add missing table alias in SQL query.
2018-10-07 21:43:47 +02:00
Neill Magill
656837d65f
MDL-62944 calendar: Clarify the intended use of $checkcapability
2018-08-31 10:15:37 +01:00
Marina Glancy
442f12f81a
MDL-62742 core: rename coursecat->core_course_category
...
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Shamim Rezaie
95ae74a7bc
MDL-58768 calendar: Add $requestinguser to the container class
...
The requesting user is not always the same as the current user. The container class now allows a different user
to be set as the requesting user. All capability checks are done against the requesting user.
Also, the $requestinguser is passed to core_calendar_provide_event_action and core_calendar_is_event_visible
callback functions. These callback functions need to be updated in all activity modules to accept a $user parameter.
2018-07-28 07:51:32 +10:00
Shamim Rezaie
d8c6c21c95
MDL-58768 Calendar: Added user param to calendar_set_filters
...
Decoupled calendar_set_filters from $USER.
Also removed the backward compatibility bit from the function because it was a left over.
2018-07-28 07:41:50 +10:00
Shamim Rezaie
bd8705732d
MDL-58768 Calendar: Added userid param to calendar_get_default_courses
2018-07-28 07:41:50 +10:00
Simey Lameze
f8a95c3df6
MDL-60826 calendar: fix group event type logic
2018-07-25 12:43:37 +08:00
Simey Lameze
687112af22
MDL-60826 calendar: further performance improvements
...
This commit does few tweaks and other performance improvements to
calendar_get_allowed_event_types to be more efficient. Also some minor
queries optimizations on the event form to fetch the list of courses
without groups.
2018-07-25 08:54:59 +08:00
Simey Lameze
0f1e7ec906
MDL-60826 calendar: restrict course fields to be retrieved
2018-07-24 07:58:34 +08:00
Simey Lameze
375b15a346
MDL-60826 calendar: deprecate calendar_get_all_allowed_types
2018-07-24 07:58:34 +08:00
Simey Lameze
dfc609e55d
MDL-60826 calendar: lazy load groups on event form
2018-07-24 07:58:34 +08:00
Simey Lameze
4be55b06da
MDL-60826 calendar: introduce calendar_get_allowed_event_types function
2018-07-24 07:58:34 +08:00
Michael Hawkins
ef4e04ee26
MDL-37624 calendar: Added location support
2018-06-29 10:46:54 +08:00
Luca Bösch
0188d5b5b4
MDL-61956 calendar: allow to see hidden course with switch role
2018-05-02 09:37:32 +02:00
Martin Gauk
c4172077df
MDL-61519 calendar: do not iterate through all categories
...
Replace calls to \coursecat::get_all() or cache the results.
2018-03-16 14:30:55 +00:00