Rename sesman privilege detection function
access_login_mng_allowed() -> access_login_is_admin()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user