Silverstripe-Content-Blocks
Silverstripe-Content-Blocks copied to clipboard
Only groups with "Full Admin" permissions can see/create/edit blocks
If a group have all permissions set exclude the "full admin" option the user of this group can not see any blooks in the admin panel "Blocks" and can not see Blocks in the tab "Block" of a page.
The selection field "choose type" and the field "+Add" above the "Content blocks" at the Blocks tab was not displayed if the "full Admin" permission was NOT set.
The "can access Blocks" option permission only effects the "Blocks" Modul at the left menu.
I am new to silverstripe and have build a midsize new website for a sports community. Now i would give access to the differents sports departments (authors) and now i am dealing with this problem many days. I do not want to reorganise the whole website without content-blocks.
Please Help!
Regards
I will see if i can find some time to take a look at this soon.
Hi,
i spend a lot of time now and i have a fix which works for me:
I added this to Block.php ->
public function canView($member=null) { return Permission::check('ADMIN') || Permission::check('CMS_ACCESS_BlockAdmin') || Permission::check('CMS_ACCESS_LeftAndMain') ; } public function canEdit($member=null) { return Permission::check('ADMIN') || Permission::check('CMS_ACCESS_BlockAdmin') || Permission::check('CMS_ACCESS_LeftAndMain') ; } public function canCreate($member=null) { return Permission::check('ADMIN') || Permission::check('CMS_ACCESS_BlockAdmin') || Permission::check('CMS_ACCESS_LeftAndMain') ; } public function canPublish($member=null) { return Permission::check('ADMIN') || Permission::check('CMS_ACCESS_BlockAdmin') || Permission::check('CMS_ACCESS_LeftAndMain') ;
}
I do not know, if the already present canDelete() function in Block.php must be changed too?
Regards, Thomas