mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
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.
This commit is contained in:
parent
07257ddc79
commit
1477155653
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user