}
else if (is_enable && (ctx->password == NULL &&
ctx->enable_password == NULL)) {
+ session->is_enable = TRUE;
return TRUE;
}
}
"no password to check while executing a privileged command");
ret = FALSE;
}
+
+ if (ret) {
+ session->is_enable = TRUE;
+ }
}
else {
/* Accept both normal and enable passwords */
password,
check, pbkdf, TRUE);
}
+
+ if (check_enable) {
+ session->is_enable = TRUE;
+ }
}
else {
check_enable = FALSE;
task->http_conn = rspamd_http_connection_ref (conn_ent->conn);;
task->sock = conn_ent->conn->fd;
+ ucl_object_insert_key (top, ucl_object_frombool (!session->is_enable),
+ "read_only", 0, false);
ucl_object_insert_key (top, ucl_object_fromint (
stat->messages_scanned), "scanned", 0, false);
ucl_object_insert_key (top, ucl_object_fromint (