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:
# -------------------------------------------------------------------
# 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:
# -------------------------------------------------------------------
# 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
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