feat: add support for global ip filters (#567)

This commit is contained in:
Stavros
2026-01-08 15:26:53 +02:00
committed by GitHub
parent e3c98faf36
commit 1ffb838c0f
4 changed files with 25 additions and 13 deletions

View File

@@ -179,9 +179,9 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
}
if userContext.IsLoggedIn {
appAllowed := controller.auth.IsResourceAllowed(c, userContext, acls)
userAllowed := controller.auth.IsUserAllowed(c, userContext, acls)
if !appAllowed {
if !userAllowed {
log.Warn().Str("user", userContext.Username).Str("resource", strings.Split(host, ".")[0]).Msg("User not allowed to access resource")
if req.Proxy == "nginx" || !isBrowser {