Managing backend user right more detailed
Posted: Thu Jun 05, 2014 7:44 pm
Hi,
As I'm completing a site for a cliƫnt, I'm in the proces of setting up an 'editing user'. I found that although you can change a lot in the permissions, still not everything can be modified in detail.
That's why I'd like to use the module_custom option to create custom templates. For instance, in the 'fields' tab of the CGCalendar module I've modified the template to show only the message that no fields can be created.
However, I would like this template to distinguish between users or user groups. So basically an if/else statement that shows a short 'no you can't do this message' when a certain user or a user from a certain group is logged in, but shows the normal template when an admin user is logged in.
EDIT: For the CGCalendar module, I found that there is an option to show only basics in the standard permission tab.
I've checked the login.php file to see if there was a variable I could use for this if/else statement, tried a couple of things but unfortunately I'm no programmer so I got stuck.
If anyone has any tips, thanks in advance.
As I'm completing a site for a cliƫnt, I'm in the proces of setting up an 'editing user'. I found that although you can change a lot in the permissions, still not everything can be modified in detail.
That's why I'd like to use the module_custom option to create custom templates. For instance, in the 'fields' tab of the CGCalendar module I've modified the template to show only the message that no fields can be created.
However, I would like this template to distinguish between users or user groups. So basically an if/else statement that shows a short 'no you can't do this message' when a certain user or a user from a certain group is logged in, but shows the normal template when an admin user is logged in.
EDIT: For the CGCalendar module, I found that there is an option to show only basics in the standard permission tab.
I've checked the login.php file to see if there was a variable I could use for this if/else statement, tried a couple of things but unfortunately I'm no programmer so I got stuck.
If anyone has any tips, thanks in advance.