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
Quote Reply
Re: [Swaylock] possible bug in editor system In reply to
Good find. Please send an email to aki@gossamer-threads.com, and then they will fix that up for the next release version Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!