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?
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.
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:
$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();}