Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: [jean] "Owner" select field can only be changed to self: Edit Log

Here is the list of edits for this post
Re: [jean] "Owner" select field can only be changed to self
Hi Jean,

I added the code that you told me to:

Code:


my $userid = $result->{$self->{cfg}->{'auth_user_field'}};
($userid eq $self->{user}->{'Username'}) or return $self->modify_form($self->_language('ERR_MODIFY_OWN')) ;

($self->{cgi}->{$self->{cfg}->{'auth_user_field'}} eq $self->{user}->{Username}) or return
$self->modify_form("You cannot transfer ownership to another user");


}
if ($self->{db}->modify ($self->{cgi})) {
$self->auth_logging('modify record ') if ($self->{cfg}->{log_file});
return $self->modify_success;
}




but it didn't make any difference. I've set the auth_user_field to the field I titled 'owner'. Is there anything else that I need to do?
Reena

Last edited by:

Reena0330: Aug 12, 2002, 1:55 PM

Edit Log: