From 89ab980681832dec2218db13f2bb598b1754e70c Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 4 Dec 2018 09:27:13 +1300 Subject: [PATCH] MDL-64124 block_ilp: Remove unused capability. --- blocks/lp/db/access.php | 10 ---------- blocks/lp/lang/en/block_lp.php | 1 - blocks/lp/upgrade.txt | 5 +++++ blocks/lp/version.php | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 blocks/lp/upgrade.txt diff --git a/blocks/lp/db/access.php b/blocks/lp/db/access.php index 73da9c99f6c..056ac2089e2 100644 --- a/blocks/lp/db/access.php +++ b/blocks/lp/db/access.php @@ -44,14 +44,4 @@ $capabilities = array( 'user' => CAP_ALLOW ) ), - - // Whether or not a user can see the block. - 'block/lp:view' => array( - 'captype' => 'read', - 'contextlevel' => CONTEXT_SYSTEM, - 'archetypes' => array( - 'user' => CAP_ALLOW - ), - ), - ); diff --git a/blocks/lp/lang/en/block_lp.php b/blocks/lp/lang/en/block_lp.php index 520f710e202..6207e9dd733 100644 --- a/blocks/lp/lang/en/block_lp.php +++ b/blocks/lp/lang/en/block_lp.php @@ -27,7 +27,6 @@ defined('MOODLE_INTERNAL') || die(); $string['competenciestoreview'] = 'Competencies to review'; $string['lp:addinstance'] = 'Add a new learning plans block'; $string['lp:myaddinstance'] = 'Add a new learning plans block to Dashboard'; -$string['lp:view'] = 'View learning plans block'; $string['myplans'] = 'My plans'; $string['noactiveplans'] = 'No active plans at the moment.'; $string['planstoreview'] = 'Plans to review'; diff --git a/blocks/lp/upgrade.txt b/blocks/lp/upgrade.txt new file mode 100644 index 00000000000..4d24c96b37b --- /dev/null +++ b/blocks/lp/upgrade.txt @@ -0,0 +1,5 @@ +This file describes API changes in the lp block code. + +=== 3.7 === + +* The 'block/lp:view' capability has been removed. It has never been used in code. \ No newline at end of file diff --git a/blocks/lp/version.php b/blocks/lp/version.php index 26e706321db..8b829a0ba55 100644 --- a/blocks/lp/version.php +++ b/blocks/lp/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2018120300; +$plugin->version = 2018121900; $plugin->requires = 2018112800; $plugin->component = 'block_lp'; $plugin->dependencies = array(