mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-22 05:00:52 +00:00
@@ -41,6 +41,7 @@ protected:
|
||||
public:
|
||||
std::string const clientIp;
|
||||
bool upgraded = false;
|
||||
bool isAdmin_ = false;
|
||||
|
||||
/**
|
||||
* @brief Create a new connection base.
|
||||
@@ -85,5 +86,16 @@ public:
|
||||
{
|
||||
return ec_ != boost::system::error_code{};
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Indicates whether the connection has admin privileges
|
||||
*
|
||||
* @return true if the connection is from admin user
|
||||
*/
|
||||
[[nodiscard]] bool
|
||||
isAdmin() const
|
||||
{
|
||||
return isAdmin_;
|
||||
}
|
||||
};
|
||||
} // namespace web
|
||||
|
||||
Reference in New Issue
Block a user