mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 16:52:25 -05:00
change name of func
This commit is contained in:
parent
4ef9134025
commit
03e0acb55b
1 changed files with 2 additions and 2 deletions
|
|
@ -127,8 +127,8 @@ func GetAuthed(c *gin.Context) (*Authed, error) {
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MustAuthed is like GetAuthed, but will fail if one of the requirements is not met.
|
// MustAuth 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) {
|
func MustAuth(c *gin.Context, requireToken bool, requireApp bool, requireUser bool, requireAccount bool) (*Authed, error) {
|
||||||
a, err := GetAuthed(c)
|
a, err := GetAuthed(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue