Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added missing rights for abundanceprofile

  • Loading branch information...
commit bba89ac97ba2b80c97e46c0e508798251b347a65 1 parent 133a88b
Travis Harrison authored
View
2  src/MGRAST/lib/resources2/abundanceprofile.pm
@@ -17,7 +17,9 @@ sub new {
my $self = $class->SUPER::new(@args);
# Add name / attributes
+ my %rights = $self->user ? map { $_, 1 } @{$self->user->has_right_to(undef, 'view', 'metagenome')} : ();
$self->{name} = "abundanceprofile";
+ $self->{rights} = \%rights;
$self->{attributes} = { "id" => [ 'string', 'unique object identifier' ],
"format" => [ 'string', 'format specification name' ],
"format_url" => [ 'string', 'url to the format specification' ],
View
2  src/MGRAST/lib/resources2/matrix.pm
@@ -346,7 +346,7 @@ sub prepare_data {
push @$bcols, { id => 'mgm'.$cid, metadata => $cmd };
}
- my $obj = { "id" => join(";", map { $_->{id} } @$bcols).'_'.$glvl.'_'.$source.'_'.$rtype,
+ my $obj = { "id" => join(";", sort map { $_->{id} } @$bcols).'_'.$glvl.'_'.$source.'_'.$rtype,
"format" => "Biological Observation Matrix 1.0",
"format_url" => "http://biom-format.org",
"type" => $ttype." table",
Please sign in to comment.
Something went wrong with that request. Please try again.