- assigned_to: nobody --> lstein
Hi,
I have modified the sub valid_source in Bio/Graphics/Browser2.pm object.
I have only added one line :
return($self->authorized($proposed_source)) if
($self->authorized($proposed_source) == 0);
With this line, the source will always be considered as not valid if
the restrict option is set to 1 in GBrowse.conf.
[xxx]
description = xxx Genome Browser - Release 2.0
path = xxx.conf
restrict = sub {
my ($host,$ip,$user) = @_;
if ($user eq 'fsapet') {
return(0);#ici on retourne 0 pour la non restriction
}
else {
return(1);
}}
I think that this is a way to really implement a restrict function,
the user will never have access to the URL.
The hide option 1 is enough to display or not the data source name.
Do you think that this line it could be added in the next release ?
sub valid_source {
my $self = shift;
my $proposed_source = shift;
return($self->authorized($proposed_source)) if
($self->authorized($proposed_source) == 0);
[....]
}
Thank you.
Fred