Rename sesman privilege detection function

access_login_mng_allowed() -> access_login_is_admin()
This commit is contained in:
matt335672
2025-03-12 17:02:16 +00:00
parent 03c42df566
commit dd020e971b
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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;
+4 -4
View File
@@ -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