Task Permissions in 5.6?
Permalink
Hi
I try to figure out how I can set up the installer to give a new group called "editors" permission to access certain areas.
In 5.5 I could do this in config/install/packages/ownpackage/controller.php:
And I figured out that I need to do this with > 5.6 now with the permissions.xml somehow.
Do I just have to copy it from it's original location to config/install/base/permissions.xml and then add there something like:
?
I try to figure out how I can set up the installer to give a new group called "editors" permission to access certain areas.
In 5.5 I could do this in config/install/packages/ownpackage/controller.php:
public function set_site_permissions() { $g4 = Group::getByID(4); //group editors $tp0 = TaskPermission::getByHandle('access_task_permissions'); $tp0->addAccess($g4);
And I figured out that I need to do this with > 5.6 now with the permissions.xml somehow.
Do I just have to copy it from it's original location to config/install/base/permissions.xml and then add there something like:
<permissionkey handle="access_task_permissions" name="Access Task Permissions" package="" category="admin"> <access> <group name="Editors"/> </access> </permissionkey>
?
I added some code to the post here
http://www.concrete5.org/community/forums/customizing_c5/editing-us...
Best Wishes,
Mike
http://www.concrete5.org/community/forums/customizing_c5/editing-us...
Best Wishes,
Mike
Thanks ;)
And giving access over "addAccess" doesn't work anymore.
So this seems outdated and just valid for concrete < 5.6:
http://www.concrete5.org/documentation/developers/permissions/task-...
I just want to give the editor group rights to access Task Permissions. Can't have become so complicated in 5.6, or?