From dd020e971b06bea7307a21e7626fa2d13e299034 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:02:16 +0000 Subject: [PATCH] Rename sesman privilege detection function access_login_mng_allowed() -> access_login_is_admin() --- sesman/libsesman/sesman_access.c | 4 ++-- sesman/libsesman/sesman_access.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sesman/libsesman/sesman_access.c b/sesman/libsesman/sesman_access.c index defb488f..3e19561e 100644 --- a/sesman/libsesman/sesman_access.c +++ b/sesman/libsesman/sesman_access.c @@ -168,8 +168,8 @@ access_login_allowed(const struct config_security *cfg_sec, const char *user) /******************************************************************************/ int -access_login_mng_allowed(const struct config_security *cfg_sec, - const char *user) +access_login_is_admin(const struct config_security *cfg_sec, + const char *user) { int rv = 0; diff --git a/sesman/libsesman/sesman_access.h b/sesman/libsesman/sesman_access.h index 8287fba9..1a47c2ce 100644 --- a/sesman/libsesman/sesman_access.h +++ b/sesman/libsesman/sesman_access.h @@ -42,13 +42,13 @@ access_login_allowed(const struct config_security *cfg_sec, /** * - * @brief Checks if the user is allowed to access the terminal server for management + * @brief Checks if the user is allowed to admin the terminal server * @param user the user to check - * @return 0 if access is denied, !=0 if allowed + * @return != 0 if the user can perform administrative tasks * */ int -access_login_mng_allowed(const struct config_security *cfg_sec, - const char *user); +access_login_is_admin(const struct config_security *cfg_sec, + const char *user); #endif