mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	enforce reqRepoReader(unit.TypeIssues) GET /repos/{owner}/{repo}/issues/pinned
(cherry picked from commit 00fad97fc1b27db40a002c9ab3f709d04dc2cdd1)
This commit is contained in:
		
					parent
					
						
							
								c0ccd4c2d7
							
						
					
				
			
			
				commit
				
					
						c70eb32280
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1155,7 +1155,7 @@ func Routes(ctx gocontext.Context) *web.Route { | |||
| 				m.Group("/issues", func() { | ||||
| 					m.Combo("").Get(repo.ListIssues). | ||||
| 						Post(reqToken(), mustNotBeArchived, bind(api.CreateIssueOption{}), repo.CreateIssue) | ||||
| 					m.Get("/pinned", repo.ListPinnedIssues) | ||||
| 					m.Get("/pinned", reqRepoReader(unit.TypeIssues), repo.ListPinnedIssues) | ||||
| 					m.Group("/comments", func() { | ||||
| 						m.Get("", repo.ListRepoIssueComments) | ||||
| 						m.Group("/{id}", func() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue