Limiting a group's dashboard access
Permalink 1 user found helpful
Hello,
I've just started developing with C5.. so far everything i've tryed to customise has gone smoothly.. however I cannot figure out how to change a specific user groups permissions to access features within the dashboard.
I want to configure users in a way that will prevent clients from making mistakes within the dashboard by disabling access to select dashboard features for an "admin" group (without disabling access to the dashboard completely).
Is this possible without editing the C5 core php files?
Thanks in advance.
I've just started developing with C5.. so far everything i've tryed to customise has gone smoothly.. however I cannot figure out how to change a specific user groups permissions to access features within the dashboard.
I want to configure users in a way that will prevent clients from making mistakes within the dashboard by disabling access to select dashboard features for an "admin" group (without disabling access to the dashboard completely).
Is this possible without editing the C5 core php files?
Thanks in advance.
yea go to the sitemap and check show system pages and click dashboard then then the page you want then permissions
Thanks, this worked great..
But is there a way to restrict which block is able to be added to an area on the code-level? This would save me time having to configure permissions for each clients website.
example (code is not valid):
is there a variable to limit the blocks to only one specified block?
But is there a way to restrict which block is able to be added to an area on the code-level? This would save me time having to configure permissions for each clients website.
example (code is not valid):
<?php $content = new Area('area'); $content->display($c); $content->limitBlockTo('my_block'); ?>
is there a variable to limit the blocks to only one specified block?
I wrote something that does exactly what you want as I was also frustrated with permissions. You need to have advanced permissions on to use it.
Upload the attached file to your "helpers" folder (get rid of the .txt extension at the end, won't let me upload a .php file).
Then use this code:
Upload the attached file to your "helpers" folder (get rid of the .txt extension at the end, won't let me upload a .php file).
Then use this code:
$a = new Area('Main'); $a->display($c); if ($c->isEditMode()) { $sp = Loader::helper('simple_permissions')->forArea($a,$c); $sp->limitBlocks('editors',array('content','image'));//first argument is the group name, second is an array of allowed blocks $sp->save(); //$sp->reset(); }
sorry, forgot the file...
Sorry this message comes a bit late...
Just letting you know that your function did the job perfectly.. thanks for the help!
Just letting you know that your function did the job perfectly.. thanks for the help!