Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Removing the LinkOwner

Quote Reply
Removing the LinkOwner
Hello all,

I'm rebuilding my site with the latest version and I'm having a little trouble with a mod I was using. I need to have any user with the status of editor or admin to be authorized to edit any link without going through the admin panel. To do this before, I went inside Modify.pm and changed

my $sth = $link_db->select ( { ID => $lid, LinkOwner => $USER->{Username} });
my $sth = $link_db->select ( { ID => $lid });

and in sub_modify_link:
$sth = $db->select ( { ID => $lid, LinkOwner => $USER->{Username} });
if ($USER->{Status} ne 'Administrator')
and changed the Status to Editor instead.

This worked great for me before, but with the new coding, I can't seem to figure out what needs to be done in this file now. I'd appreciate any help or suggestions.

Perl Hopefull