Forums

User/Owner Permissions

Yann63 31 Jul, 2012
Hi all,
first of all I would like to congratulate you about the great work for ChronoEngine tools.

My issue is about the users permissions. I have a form done with Chronoform which works fine. I need to allow user to modify or delete their subscription but only their own not all.

I worked before with CC V3 and I used this method :
<?php
$user = & JFactory::getUser();
if ( $user->id == $MyRow->cf_user_id ) {
?>
{edit_record} ou {delete_record}
<?php
}
?>


but now {edit_record} ... doesn't work.

I'm now using the last version of CC V4. I'm using frontend toolbar for deleting entrie and "Edit Field(s)" on FrontEnd List Settings for editing entrie. Both of them works but all users can delete or modify the entrie. I need to allow only the owner of entrie to delete or edit the entrie.
I guess you have a solution to do that, but I don't find it on Tutorials or forum.
Thanks a lot.
GreyHead 31 Jul, 2012
Hi Yann63,

I think the settings you need are on the Front Permissions | General tab. There a box there called Owner data field.

Bob
Yann63 31 Jul, 2012
yes I tried to fill this box with the unique id : cf_user_id but it doesn't work. Users can edit any entries
Yann63 31 Jul, 2012
It works now !
I missed something I guess on Front Permissions tab > Update Permissions > Owner (permissions).
If somebody tried to do the same thing than me or if I did something wrong, I'm sharing my example :

Use this FAQ : http://www.chronoengine.com/faqs/2564-making-our-articles-editable.html
On CC > Front Editing > Front form : select the form
on CC > Front Permissions tab > Update Permissions > select owner on update, delete...

Easy and logic, thanks GreyHead.
This topic is locked and no more replies can be posted.