Skip to content

Commit

Permalink
MDL-44990 logging: Capabilites removed from legacy and standard log.
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Apr 17, 2014
1 parent 127daca commit da223c1
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 98 deletions.
11 changes: 0 additions & 11 deletions admin/tool/log/classes/helper/reader.php
Expand Up @@ -61,15 +61,4 @@ public function get_description() {
}
return $this->store;
}

/**
* If the current user can access current store or not.
*
* @param \context $context
*
* @return bool
*/
public function can_access(\context $context) {
return has_capability('logstore/' . $this->store . ':read', $context);
}
}
38 changes: 0 additions & 38 deletions admin/tool/log/store/legacy/db/access.php

This file was deleted.

1 change: 0 additions & 1 deletion admin/tool/log/store/legacy/lang/en/logstore_legacy.php
Expand Up @@ -23,7 +23,6 @@
*/

$string['event_legacy_logged'] = 'Legacy event logged';
$string['legacy:read'] = 'Read logs';
$string['loglegacy'] = 'Log legacy data';
$string['loglegacy_help'] = 'This plugin records log data to the legacy log table (mdl_log). This functionality has been replaced by newer, richer and more efficient logging plugins, so you should only run this plugin if you have old custom reports that directly query the old log table. Writing to the legacy logs will increase load, so it is recommended that you disable this plugin for performance reasons when it is not needed.';
$string['pluginname'] = 'Legacy log';
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/log/store/legacy/version.php
Expand Up @@ -24,6 +24,6 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2014031300; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2014041700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014031200; // Requires this Moodle version.
$plugin->component = 'logstore_legacy'; // Full name of the plugin (used for diagnostics).
38 changes: 0 additions & 38 deletions admin/tool/log/store/standard/db/access.php

This file was deleted.

Expand Up @@ -25,5 +25,4 @@
$string['buffersize'] = 'Write buffer size';
$string['pluginname'] = 'Standard log';
$string['pluginname_desc'] = 'A log plugin stores log entries in a Moodle database table.';
$string['standard:read'] = 'Read logs';
$string['taskcleanup'] = 'Log table cleanup';
2 changes: 1 addition & 1 deletion admin/tool/log/store/standard/version.php
Expand Up @@ -24,6 +24,6 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2014041500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2014041700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014031200; // Requires this Moodle version.
$plugin->component = 'logstore_standard'; // Full name of the plugin (used for diagnostics).
7 changes: 0 additions & 7 deletions lib/classes/log/reader.php
Expand Up @@ -42,13 +42,6 @@ public function get_name();
*/
public function get_description();

/**
* Can the current user access this store?
* @param \context $context
* @return bool
*/
public function can_access(\context $context);

/**
* Are the new events appearing in the reader?
*
Expand Down

0 comments on commit da223c1

Please sign in to comment.