diff --git a/src/plugins/accounting_storage/common/common_as.c b/src/plugins/accounting_storage/common/common_as.c index 7d48ac7c6bceb52b5fc41fbf34fb807fc7e9f78d..9993cff59602c2b5e274103a9f965847cf16482e 100644 --- a/src/plugins/accounting_storage/common/common_as.c +++ b/src/plugins/accounting_storage/common/common_as.c @@ -62,6 +62,8 @@ extern char *wckey_day_table; extern char *wckey_hour_table; extern char *wckey_month_table; +extern __thread bool drop_priv; + /* * We want SLURMDB_MODIFY_ASSOC always to be the last */ @@ -466,6 +468,10 @@ extern bool is_user_min_admin_level(void *db_conn, uid_t uid, * THERE IS NO AUTHENTICATION WHEN RUNNNING OUT OF THE * SLURMDBD! */ +#ifndef NDEBUG + if (drop_priv) + return false; +#endif if (slurmdbd_conf) { /* We have to check the authentication here in the * plugin since we don't know what accounts are being