Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-62228_33' of git://github.com/markn86/moodle into M…
…OODLE_33_STABLE
  • Loading branch information
David Monllao committed May 15, 2018
2 parents ac897ae + e8279ab commit d60618c
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 29 deletions.
3 changes: 0 additions & 3 deletions admin/roles/classes/privacy/provider.php
Expand Up @@ -313,9 +313,6 @@ public static function delete_data_for_all_users_in_context(\context $context) {
// Don't belong to the modifier user.

// Remove data from role_assignments.
if (empty($context)) {
return;
}
$DB->delete_records('role_assignments', ['contextid' => $context->id]);
}
/**
Expand Down
4 changes: 0 additions & 4 deletions auth/mnet/classes/privacy/provider.php
Expand Up @@ -211,10 +211,6 @@ public static function export_user_data(approved_contextlist $contextlist) {
public static function delete_data_for_all_users_in_context(\context $context) {
global $DB;

if (empty($context)) {
return;
}

if ($context->contextlevel != CONTEXT_USER) {
return;
}
Expand Down
4 changes: 0 additions & 4 deletions auth/oauth2/classes/privacy/provider.php
Expand Up @@ -120,10 +120,6 @@ public static function export_user_data(approved_contextlist $contextlist) {
* @param \context $context The context to delete data for.
*/
public static function delete_data_for_all_users_in_context(\context $context) {
if (empty($context)) {
return;
}

if ($context->contextlevel != CONTEXT_USER) {
return;
}
Expand Down
4 changes: 0 additions & 4 deletions calendar/classes/privacy/provider.php
Expand Up @@ -183,10 +183,6 @@ public static function export_user_preferences($userid) {
* @param context $context Transform the specific context to delete data for.
*/
public static function delete_data_for_all_users_in_context(\context $context) {
if (empty($context)) {
return;
}

// Delete all Calendar Events in the specified context in batches.
if ($eventids = array_keys(self::get_calendar_event_ids_by_context($context))) {
self::delete_batch_records('event', 'id', $eventids);
Expand Down
4 changes: 0 additions & 4 deletions cohort/classes/privacy/provider.php
Expand Up @@ -143,10 +143,6 @@ public static function export_user_data(approved_contextlist $contextlist) {
* @param context $context A user context.
*/
public static function delete_data_for_all_users_in_context(\context $context) {
if (empty($context)) {
return;
}

if (!$context instanceof \context_system && !$context instanceof \context_coursecat) {
return;
}
Expand Down
3 changes: 0 additions & 3 deletions enrol/classes/privacy/provider.php
Expand Up @@ -164,9 +164,6 @@ public static function export_user_data(approved_contextlist $contextlist) {
public static function delete_data_for_all_users_in_context(\context $context) {
global $DB;

if (empty($context)) {
return;
}
// Sanity check that context is at the User context level.
if ($context->contextlevel == CONTEXT_COURSE) {
$sql = "SELECT ue.id
Expand Down
4 changes: 0 additions & 4 deletions mod/assignment/classes/privacy/provider.php
Expand Up @@ -215,10 +215,6 @@ public static function export_user_preferences($userid) {
public static function delete_data_for_all_users_in_context(\context $context) {
global $DB;

if (empty($context)) {
return;
}

if ($context->contextlevel == CONTEXT_MODULE) {
// Delete all assignment submissions for the assignment associated with the context module.
$assignment = self::get_assignment_by_context($context);
Expand Down
3 changes: 0 additions & 3 deletions mod/glossary/classes/privacy/provider.php
Expand Up @@ -240,9 +240,6 @@ protected static function export_glossary_data_for_user(array $glossarydata, \co
*/
public static function delete_data_for_all_users_in_context(\context $context) {
global $DB;
if (empty($context)) {
return;
}

if ($context->contextlevel != CONTEXT_MODULE) {
return;
Expand Down

0 comments on commit d60618c

Please sign in to comment.