From 03e0acb55b324d071c9a24fd54991276310e30f7 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sat, 27 Mar 2021 18:02:22 +0100 Subject: [PATCH] change name of func --- internal/oauth/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/oauth/server.go b/internal/oauth/server.go index 5fd06c2ea..2c0a07ed3 100644 --- a/internal/oauth/server.go +++ b/internal/oauth/server.go @@ -127,8 +127,8 @@ func GetAuthed(c *gin.Context) (*Authed, error) { return a, nil } -// MustAuthed is like GetAuthed, but will fail if one of the requirements is not met. -func MustAuthed(c *gin.Context, requireToken bool, requireApp bool, requireUser bool, requireAccount bool) (*Authed, error) { +// MustAuth is like GetAuthed, but will fail if one of the requirements is not met. +func MustAuth(c *gin.Context, requireToken bool, requireApp bool, requireUser bool, requireAccount bool) (*Authed, error) { a, err := GetAuthed(c) if err != nil { return nil, err