diff --git a/controllers/scim.go b/controllers/scim.go index b9484d58..24c28344 100644 --- a/controllers/scim.go +++ b/controllers/scim.go @@ -21,6 +21,11 @@ import ( ) func (c *RootController) HandleScim() { + _, ok := c.RequireAdmin() + if !ok { + return + } + path := c.Ctx.Request.URL.Path c.Ctx.Request.URL.Path = strings.TrimPrefix(path, "/scim") scim.Server.ServeHTTP(c.Ctx.ResponseWriter, c.Ctx.Request)