From 1477155653f02dd4944832d1e1b294ecd46c89c5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 18 Aug 2014 11:20:38 +1200 Subject: [PATCH] Removing unused permission SUBSITE_ASSETS_CREATE_SUBSITE This isn't used, according to the description it would limit the list of subsites you can choose to apply a File/Folder to. However, this dropdown is shown to the user based on whether they have access to that subsite, so this unused permission code isn't needed. --- code/model/Subsite.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/code/model/Subsite.php b/code/model/Subsite.php index 4d4aab5..e5f8182 100644 --- a/code/model/Subsite.php +++ b/code/model/Subsite.php @@ -5,7 +5,7 @@ * * @package subsites */ -class Subsite extends DataObject implements PermissionProvider { +class Subsite extends DataObject { /** * @var $use_session_subsiteid Boolean Set to TRUE when using the CMS and FALSE @@ -511,22 +511,7 @@ class Subsite extends DataObject implements PermissionProvider { public function canEdit($member = false) { return true; } - - /** - * - * @return array - */ - public function providePermissions() { - return array( - 'SUBSITE_ASSETS_CREATE_SUBSITE' => array( - 'name' => _t('Subsite.MANAGE_ASSETS', 'Manage assets for subsites'), - 'category' => _t('Permissions.PERMISSIONS_CATEGORY', 'Roles and access permissions'), - 'help' => _t('Subsite.MANAGE_ASSETS_HELP', 'Ability to select the subsite to which an asset folder belongs. Requires "Access to Files & Images."'), - 'sort' => 300 - ) - ); - } - + /** * Show the configuration fields for each subsite *