mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 16:17:41 -04:00 
			
		
		
		
	fix #751
This commit is contained in:
		| @@ -198,6 +198,15 @@ func Profile(ctx *middleware.Context) { | |||||||
| 		} | 		} | ||||||
| 		feeds := make([]*models.Action, 0, len(actions)) | 		feeds := make([]*models.Action, 0, len(actions)) | ||||||
| 		for _, act := range actions { | 		for _, act := range actions { | ||||||
|  | 			if act.IsPrivate { | ||||||
|  | 				if !ctx.IsSigned { | ||||||
|  | 					continue | ||||||
|  | 				} | ||||||
|  | 				if has, _ := models.HasAccess(ctx.User.Name, act.RepoUserName+"/"+act.RepoName, | ||||||
|  | 					models.READABLE); !has { | ||||||
|  | 					continue | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
| 			// FIXME: cache results? | 			// FIXME: cache results? | ||||||
| 			u, err := models.GetUserByName(act.ActUserName) | 			u, err := models.GetUserByName(act.ActUserName) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user