mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							387a4b09c1
						
					
				
				
					commit
					e47df0b301
				
			| @@ -63,6 +63,7 @@ func SignedInID(ctx *macaron.Context, sess session.Store) int64 { | ||||
| 			if err = models.UpdateAccessToken(t); err != nil { | ||||
| 				log.Error(4, "UpdateAccessToken: %v", err) | ||||
| 			} | ||||
| 			ctx.Data["IsApiToken"] = true | ||||
| 			return t.UID | ||||
| 		} | ||||
| 	} | ||||
| @@ -136,7 +137,7 @@ func SignedInUser(ctx *macaron.Context, sess session.Store) (*models.User, bool) | ||||
| 				} | ||||
| 				return nil, false | ||||
| 			} | ||||
|  | ||||
| 			ctx.Data["IsApiToken"] = true | ||||
| 			return u, true | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user