mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #154 from halkyon/irrelevant_permission_removal
Removing unused permission SUBSITE_ASSETS_CREATE_SUBSITE
This commit is contained in:
commit
a3b2be734f
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @package subsites
|
* @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
|
* @var $use_session_subsiteid Boolean Set to TRUE when using the CMS and FALSE
|
||||||
@ -512,21 +512,6 @@ class Subsite extends DataObject implements PermissionProvider {
|
|||||||
return true;
|
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
|
* Show the configuration fields for each subsite
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user