mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:22: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 | ||||
| } | ||||
| 
 | ||||
| // 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue