mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-31 22:58:32 +00:00
change name of func
This commit is contained in:
parent
4ef9134025
commit
03e0acb55b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue