(e *core.RequestEvent)
| 69 | } |
| 70 | |
| 71 | func findAuthCollection(e *core.RequestEvent) (*core.Collection, error) { |
| 72 | collection, err := e.App.FindCachedCollectionByNameOrId(e.Request.PathValue("collection")) |
| 73 | |
| 74 | if err != nil || !collection.IsAuth() { |
| 75 | return nil, e.NotFoundError("Missing or invalid auth collection context.", err) |
| 76 | } |
| 77 | |
| 78 | return collection, nil |
| 79 | } |
no test coverage detected
searching dependent graphs…