mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-17 11:38:14 +02:00
applied some of the changes from #149
This commit is contained in:
1 parent
7f959011b8
commit
9a231ba7b3
6 files changed
+15
-17
No files matched your search
+1
-1
@@ -77,7 +77,7 @@ func RequireAdminAuth() echo.MiddlewareFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// RequireAdminAuthIfAny middleware requires a request to have
|
||||
// RequireAdminAuthOnlyIfAny middleware requires a request to have
|
||||
// a valid admin Authorization header set (aka. `Authorization: Admin ...`)
|
||||
// ONLY if the application has at least 1 existing Admin model.
|
||||
func RequireAdminAuthOnlyIfAny(app core.App) echo.MiddlewareFunc {
|
||||
|
||||
Reference in new issue
Block a user