turboFei commented on code in PR #4405:
URL: https://github.com/apache/kyuubi/pull/4405#discussion_r1117840105
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/AdminResource.scala:
##########
@@ -54,7 +55,7 @@ private[v1] class AdminResource extends ApiRequestContext
with Logging {
val userName = fe.getSessionUser(Map.empty[String, String])
val ipAddress = fe.getIpAddress
info(s"Receive refresh Kyuubi server hadoop conf request from
$userName/$ipAddress")
- if (!userName.equals(administrator)) {
+ if (!administrators.contains(userName)) {
Review Comment:
we can add a method for this.
```
isAdministrator
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]