MDL-44107 deprecate can_view() in feedback events, to be replaced by is_anonymous()
See MDL-44661 for more info.
This commit is contained in:
@@ -53,6 +53,8 @@ class course_module_viewed extends \core\event\course_module_viewed {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
||||
@@ -84,6 +84,8 @@ class response_deleted extends \core\event\base {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
||||
@@ -106,6 +106,8 @@ class response_submitted extends \core\event\base {
|
||||
/**
|
||||
* Define whether a user can view the event or not. Make sure no one except admin can see details of an anonymous response.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*
|
||||
* @param int|\stdClass $userorid ID of the user.
|
||||
* @return bool True if the user can view the event, false otherwise.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user