Permissions by joomla user

elsepu 04 Dec, 2008
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.
GreyHead 04 Dec, 2008
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
Max_admin 04 Dec, 2008
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 :


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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
elsepu 05 Dec, 2008
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:

<?php $user = JFactory::getUser(); if($user->id == 62){ ?>{edit_record}<?php } ?>


Again, thank you.

Alex.
Max_admin 06 Dec, 2008
Hi Alex,

you are correct, sorry this was a typo! glad you made it yourself!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.