Skip to content

Commit

Permalink
Restrict rioxx tab to editors and admins only, fixing #20
Browse files Browse the repository at this point in the history
  • Loading branch information
drtjmb committed Mar 11, 2015
1 parent aba1425 commit 21c5c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cfg/cfg.d/zz_rioxx2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,7 @@
$c->{plugins}{"Screen::Report::RIOXX2"}{params}{disable} = 0;
$c->{plugins}{"Screen::Report::RIOXX2::2014"}{params}{disable} = 0;
$c->{plugins}{"Export::Report::CSV::RIOXX2"}{params}{disable} = 0;

push @{$c->{user_roles}->{admin}}, qw{ +report/rioxx2 };
push @{ $c->{user_roles}->{editor} }, qw{ +eprint/rioxx2 };
push @{ $c->{user_roles}->{admin} }, qw{ +eprint/rioxx2 };
2 changes: 1 addition & 1 deletion lib/plugins/EPrints/Plugin/Screen/EPrint/RIOXX2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sub can_be_viewed
{
my( $self ) = @_;

return $self->allow( "eprint/details" );
return $self->allow( "eprint/rioxx2" );
}

sub render
Expand Down

0 comments on commit 21c5c85

Please sign in to comment.