Skip to content

Commit

Permalink
actually apply the method restrictions requested for article objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Mar 4, 2013
1 parent f25bd6e commit ea975bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/cgi-bin/modules/Article.pm
Expand Up @@ -8,7 +8,7 @@ use vars qw/@ISA/;
@ISA = qw/Squirrel::Row BSE::TB::SiteCommon BSE::TB::TagOwner/;
use Carp 'confess';

our $VERSION = "1.017";
our $VERSION = "1.018";

=head1 NAME
Expand Down Expand Up @@ -596,10 +596,10 @@ sub should_generate {
return $self->is_linked && $self->listed && $self->is_released && !$self->is_expired;
}

sub restricted_methods {
sub restricted_method {
my ($self, $name) = @_;

return $self->SUPER::restricted_methods($name)
return $self->SUPER::restricted_method($name)
|| $name =~ /^(?:update_|remove_|add_)/;
}

Expand Down

0 comments on commit ea975bf

Please sign in to comment.