mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX: Only show the subsites that you can actually access in the subsite tab of the group. (from r88952) (from r96296)
This commit is contained in:
parent
7ae038ace2
commit
05c07fc824
@ -54,7 +54,6 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function updateCMSFields(&$fields) {
|
||||
if($this->owner->canEdit() ){
|
||||
// i18n tab
|
||||
@ -208,7 +207,6 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
|
||||
return $group;
|
||||
}
|
||||
<<<<<<< .working
|
||||
|
||||
function providePermissions() {
|
||||
return array(
|
||||
@ -220,15 +218,6 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
)
|
||||
);
|
||||
}
|
||||
=======
|
||||
|
||||
function providePermissions() {
|
||||
return array(
|
||||
'SECURITY_SUBSITE_GROUP' => 'Edit the subsite a group can access'
|
||||
);
|
||||
}
|
||||
>>>>>>> .merge-right.r96288
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user