registered users submit, only onwner edit?

djemmers 30 Mar, 2009
Hi,

got forms/conectivity and search working together!
all without to much difficulties.
what I would like is that besides the permissions to edit/delete you set in the front permissions tab,
is having the creator of the table entry ( I store the user id of the creator of the entry in one of the five auto set fields of the src table, namly "uid")
I would like to have that user also is able to edit his entry.
How do I go about it?
My guess is I will have to do a litle hacking of connectivity? Or won't that be needed ?

in reality we have:
all registered users can add to the table
the creator (owner) of the entry (talbe field "uid") can also edit that entry.

so registered user "jack" can edit the entries in the table that he created and not those of someone else.

my guess is that in chronoconnectivity.php on r203 I'll have to add some code

	$user = JFactory::getuser();
	$authedit = false;
	$authedit_groups = explode(",", $paramsvalues->authedit_groups);
	if(in_array($user->gid, $authedit_groups)){
		$authedit = true;
	}// extra code here  something like: if $fielduid = $logedinuserid then auhtedit=true
	if(!$authedit){echo "You are not authorized to view this page, error 1"; return;};
This topic is locked and no more replies can be posted.