Gossamer Forum
Home : Products : Gossamer Links : Discussions :

possible bug in editor system

Quote Reply
possible bug in editor system
NOTE: This may be old news but...

I was trying allow some editors to modify some links within a given category. No matter what, LinksSQL was throwing back an error -- "you are not authorized to perform this action" (or something like that.)

After nosing around a bit, I found what appears to be a bug -- at least in my build.

In admin/Links/Browser/Controller.pm the following code:

Code:
sub link_modify {
# -------------------------------------------------------------------
# Display modify link form.
#
my $self = shift;
my $base = $self->is_in_subtree ($IN->param ('CatLinks.CategoryID')) or return;
$self->{perms}->{$base}->{CanAddLink} eq 'Yes' or return;
$self->link_modify_form(@_);
}

it should read as follows:

Code:
sub link_modify {
# -------------------------------------------------------------------
# Display modify link form.
#
my $self = shift;
my $base = $self->is_in_subtree ($IN->param ('CatLinks.CategoryID')) or return;
$self->{perms}->{$base}->{CanModLink} eq 'Yes' or return;
$self->link_modify_form(@_);
}

CanAddLink should be CanModLink.

Hope that helps anybody else that was having the same problem.

Mike
Subject Author Views Date
Thread possible bug in editor system Swaylock 1718 Dec 6, 2003, 3:18 PM
Post Re: [Swaylock] possible bug in editor system
Andy 1658 Dec 7, 2003, 2:49 AM