Skip to content

Commit

Permalink
added extra constraint to check_access
Browse files Browse the repository at this point in the history
  • Loading branch information
zoyafuso-NOAA committed Mar 1, 2024
1 parent b8f83e1 commit 9f0d1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_connected.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ get_connected <- function(db = "AFSC", check_access = TRUE) {
if (class(channel) == "RODBC") {
cat("Successfully connected to Oracle.\n")

if (check_access) {
if (check_access & db == "AFSC") {
cat("Checking that you have access to the tables queried in the gapindex package.\n")
tables_to_check <-
data.frame(table_name = c(
Expand Down

0 comments on commit 9f0d1f6

Please sign in to comment.