Is there a way to set the permissions for edit/delete to specific joomla users regardless of "user type"? I need three specific members to be able to "edit" a record...one is a registered memebr,another is an author, and I'm the admin.
Hi elsepu,
I'm not an expert in ChronoConnectivity but I don't think that this exists 'out of the box', it could probably be added as a hack but I guess that there is some work involved.
Bob
I'm not an expert in ChronoConnectivity but I don't think that this exists 'out of the box', it could probably be added as a hack but I guess that there is some work involved.
Bob
Hi,
ChronoConnectivity will detect the presence of the {edit_record} in the body area and based on this it will build the permissions!
more, assuming your user id as an admin is 62, so at the body area do this :
the code above will limit the edit for the admin user only and so the edit will be available only to him!
Regards
Max
ChronoConnectivity will detect the presence of the {edit_record} in the body area and based on this it will build the permissions!
more, assuming your user id as an admin is 62, so at the body area do this :
this is my body area, here is the edit link:
<?php $user = JFactory::getUser; if($user->id == 62){ ?>{edit_record}<?php } ?>
the code above will limit the edit for the admin user only and so the edit will be available only to him!
Regards
Max
Bob and Max, thank you much for your replies. I'm completely new to php, so every little bit of help goes a long way.
Max, I tried your code but kept getting an error; after some trial and error I figured out that if I added parenthesis after getUser this code works like a champ!
Here is the code that worked for me:
Again, thank you.
Alex.
Max, I tried your code but kept getting an error; after some trial and error I figured out that if I added parenthesis after getUser this code works like a champ!
Here is the code that worked for me:
<?php $user = JFactory::getUser(); if($user->id == 62){ ?>{edit_record}<?php } ?>
Again, thank you.
Alex.
Hi Alex,
you are correct, sorry this was a typo! glad you made it yourself!
Regards
Max
you are correct, sorry this was a typo! glad you made it yourself!
Regards
Max
This topic is locked and no more replies can be posted.