Skip to content

Commit

Permalink
Merge pull request #1284 from tripal/1283-tv3-vocabulary_warnings
Browse files Browse the repository at this point in the history
Check if user is admin before warning
  • Loading branch information
spficklin committed Aug 30, 2022
2 parents 43131a6 + bc0d1a4 commit 6c01c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tripal_chado/includes/tripal_chado.vocab_storage.inc
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ function tripal_chado_vocab_get_vocabulary($vocabulary) {
$result = chado_query($sql, [':name' => $vocabulary]);
$result = $result->fetchAssoc();
if (!$result) {
drupal_set_message("Could not find details about the vocabulary: $vocabulary. Note: " .
tripal_set_message("Could not find details about the vocabulary: $vocabulary. Note: " .
"if this vocabulary does exist, try re-populating the db2cv_mview materialized " .
"view at Admin > Tripal > Data Storage > Chado > Materialized views.");
"view at Admin > Tripal > Data Storage > Chado > Materialized views.",TRIPAL_NOTICE);
return FALSE;
}

Expand Down

0 comments on commit 6c01c89

Please sign in to comment.