fix: application fails to call /api/get-resources (#2139)

just like other apis, resource.go.GetResources() no longer calls ApiController.RequireSignedInUser() to auth or check
This commit is contained in:
WintBit 2023-07-26 17:19:00 +08:00 committed by GitHub
parent 6a952952a8
commit e98264f957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,14 +52,6 @@ func (c *ApiController) GetResources() {
sortField := c.Input().Get("sortField")
sortOrder := c.Input().Get("sortOrder")
userObj, ok := c.RequireSignedInUser()
if !ok {
return
}
if userObj.IsAdmin {
user = ""
}
if limit == "" || page == "" {
resources, err := object.GetResources(owner, user)
if err != nil {