@@ -38,7 +38,7 @@ public VisualInstructionsController(IVisualInstructions visualInstructions)
3838 [ HttpGet ( "stream" ) ]
3939 [ ProducesResponseType ( typeof ( InstructionModel [ ] ) , StatusCodes . Status200OK ) ]
4040 [ ProducesResponseType ( typeof ( string ) , StatusCodes . Status400BadRequest ) ]
41- [ Authorize ( Policy = VisualInstructionPermissions . CanView ) ]
41+ [ Authorize ( Policy = VisualInstructionsPermissions . CanView ) ]
4242 public async Task InstructionStream ( CancellationToken cancelToken )
4343 {
4444 var response = Response ;
@@ -111,7 +111,7 @@ private void WriteIdentifiers(string identifier, Channel<string> instructionSetC
111111 [ HttpGet ( "{identifier}" ) ]
112112 [ ProducesResponseType ( typeof ( InstructionModel [ ] ) , StatusCodes . Status200OK ) ]
113113 [ ProducesResponseType ( typeof ( string ) , StatusCodes . Status400BadRequest ) ]
114- [ Authorize ( Policy = VisualInstructionPermissions . CanView ) ]
114+ [ Authorize ( Policy = VisualInstructionsPermissions . CanView ) ]
115115 public ActionResult < InstructionModel [ ] > GetAll ( string identifier )
116116 {
117117 if ( string . IsNullOrEmpty ( identifier ) )
@@ -122,15 +122,15 @@ public ActionResult<InstructionModel[]> GetAll(string identifier)
122122
123123 [ HttpPost ( "{identifier}" ) ]
124124 [ ProducesResponseType ( StatusCodes . Status200OK ) ]
125- [ Authorize ( Policy = VisualInstructionPermissions . CanAdd ) ]
125+ [ Authorize ( Policy = VisualInstructionsPermissions . CanAdd ) ]
126126 public void AddInstruction ( string identifier , InstructionModel instruction )
127127 {
128128 _visualInstructions . AddInstruction ( identifier , Converter . FromModel ( instruction ) ) ;
129129 }
130130
131131 [ HttpDelete ( "{identifier}" ) ]
132132 [ ProducesResponseType ( StatusCodes . Status200OK ) ]
133- [ Authorize ( Policy = VisualInstructionPermissions . CanClear ) ]
133+ [ Authorize ( Policy = VisualInstructionsPermissions . CanClear ) ]
134134 public void ClearInstruction ( string identifier , InstructionModel instruction )
135135 {
136136 _visualInstructions . ClearInstruction ( identifier , Converter . FromModel ( instruction ) ) ;
@@ -139,7 +139,7 @@ public void ClearInstruction(string identifier, InstructionModel instruction)
139139 [ HttpPut ( "{identifier}/response" ) ]
140140 [ ProducesResponseType ( StatusCodes . Status200OK ) ]
141141 [ ProducesResponseType ( StatusCodes . Status404NotFound ) ]
142- [ Authorize ( Policy = VisualInstructionPermissions . CanComplete ) ]
142+ [ Authorize ( Policy = VisualInstructionsPermissions . CanComplete ) ]
143143 public void CompleteInstruction ( string identifier , InstructionResponseModel response )
144144 {
145145 var activeInstruction = _visualInstructions . GetInstructions ( identifier ) ? . FirstOrDefault ( ai => ai . Id == response . Id ) ;
@@ -168,7 +168,7 @@ public void CompleteInstruction(string identifier, InstructionResponseModel resp
168168
169169 [ HttpGet ( "instructors" ) ]
170170 [ ProducesResponseType ( typeof ( string [ ] ) , StatusCodes . Status200OK ) ]
171- [ Authorize ( Policy = VisualInstructionPermissions . CanView ) ]
171+ [ Authorize ( Policy = VisualInstructionsPermissions . CanView ) ]
172172 public ActionResult < string [ ] > GetInstructors ( )
173173 {
174174 return _visualInstructions . GetInstructors ( ) . ToArray ( ) ;
0 commit comments