chore(backend): add roslynator and fix diagnostics
This commit is contained in:
		
							parent
							
								
									649988db25
								
							
						
					
					
						commit
						f8e6032449
					
				
					 20 changed files with 60 additions and 38 deletions
				
			
		|  | @ -44,7 +44,9 @@ public class AuthorizationMiddleware : IMiddleware | |||
|             && token.User.Role != UserRole.Admin | ||||
|             && token.User.Role != UserRole.Moderator | ||||
|         ) | ||||
|         { | ||||
|             throw new ApiError.Forbidden("This endpoint can only be used by moderators."); | ||||
|         } | ||||
| 
 | ||||
|         await next(ctx); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue