change name of func

This commit is contained in:
tsmethurst 2021-03-27 18:02:22 +01:00
parent 4ef9134025
commit 03e0acb55b

View file

@ -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