diff --git a/lib/SGN/Controller/AJAX/Accessions.pm b/lib/SGN/Controller/AJAX/Accessions.pm index 2fec216059..231722c055 100644 --- a/lib/SGN/Controller/AJAX/Accessions.pm +++ b/lib/SGN/Controller/AJAX/Accessions.pm @@ -86,10 +86,10 @@ sub verify_accession_list_POST : Args(0) { my @organism_list = $organism_list_json ? @{_parse_list_from_json($c, $organism_list_json)} : []; my $do_fuzzy_search = $c->req->param('do_fuzzy_search'); - if ($user_role ne 'curator' && !$do_fuzzy_search) { - $c->stash->{rest} = {error=>'Only a curator can add accessions without using the fuzzy search!'}; - $c->detach(); - } + #if ($user_role ne 'curator' && !$do_fuzzy_search) { + # $c->stash->{rest} = {error=>'Only a curator can add accessions without using the fuzzy search!'}; + # $c->detach(); + #} if ($do_fuzzy_search) { $self->do_fuzzy_search($c, \@accession_list, \@organism_list); @@ -239,10 +239,10 @@ sub verify_accessions_file_POST : Args(0) { my $do_fuzzy_search = $user_role eq 'curator' && !$c->req->param('fuzzy_check_upload_accessions') ? 0 : 1; my $append_synonyms = !$c->req->param('append_synonyms') ? 0 : 1; - if ($user_role ne 'curator' && !$do_fuzzy_search) { - $c->stash->{rest} = {error=>'Only a curator can add accessions without using the fuzzy search!'}; - $c->detach(); - } + #if ($user_role ne 'curator' && !$do_fuzzy_search) { + # $c->stash->{rest} = {error=>'Only a curator can add accessions without using the fuzzy search!'}; + # $c->detach(); + #} # These roles are required by CXGN::UploadFile if ($user_role ne 'curator' && $user_role ne 'submitter' && $user_role ne 'sequencer' ) { diff --git a/mason/breeders_toolbox/add_accessions_dialogs.mas b/mason/breeders_toolbox/add_accessions_dialogs.mas index 78618895a7..9e2c06e5fb 100644 --- a/mason/breeders_toolbox/add_accessions_dialogs.mas +++ b/mason/breeders_toolbox/add_accessions_dialogs.mas @@ -47,13 +47,13 @@ $editable_stock_props_definitions
-% if ( $user_role eq 'curator' ) { - -% } else { - -% } +%# if ( $user_role eq 'curator' ) { + +%# } else { +%# +%# }
- Note: Use the fuzzy search to match similar names to prevent uploading of duplicate accessions. Fuzzy searching is much slower than regular search. Only a curator can disable the fuzzy search. + Note: Use the fuzzy search to match similar names to prevent uploading of duplicate accessions. Fuzzy searching is much slower than regular search.
@@ -87,11 +87,11 @@ $editable_stock_props_definitions
-% if ( $user_role eq 'curator' ) { - -% } else { - -% } +%# if ( $user_role eq 'curator' ) { + +%# } else { +%# +%# }
Note: Use the fuzzy search to match similar names to prevent uploading of duplicate accessions. Fuzzy searching is much slower than regular search. Only a curator can disable the fuzzy search.
diff --git a/t/selenium2/breeders/accessions.t b/t/selenium2/breeders/accessions.t index f73f693f0e..63d5a43c71 100644 --- a/t/selenium2/breeders/accessions.t +++ b/t/selenium2/breeders/accessions.t @@ -1,6 +1,9 @@ + +use strict; + use lib 't/lib'; -use Test::More 'tests' => 48; +use Test::More 'tests' => 46; use SGN::Test::WWW::WebDriver; use Selenium::Remote::WDKeys 'KEYS'; @@ -169,8 +172,8 @@ $t->while_logged_in_as("submitter", sub { $t->find_element_ok("add_accessions_link", "name", "find element add accessions link as submitter")->click(); my $fuzzy_checkbox = $t->find_element_ok("fuzzy_check", "id", "find fuzzy checkbox"); - is $fuzzy_checkbox->get_attribute('checked'), 1, 'fuzzy logic checkbox is checked for submitter'; - is $fuzzy_checkbox->get_attribute('disabled'), 1, 'fuzzy logic checkbox is disabled for submitter'; +# is $fuzzy_checkbox->get_attribute('checked'), 1, 'fuzzy logic checkbox is checked for submitter'; +# is $fuzzy_checkbox->get_attribute('disabled'), 1, 'fuzzy logic checkbox is disabled for submitter'; }); $t->driver->close();