Renamedpermisssions from *Organisation* to *Organization*📝
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/pr Build is passing
				
			ref #117
This commit is contained in:
		| @@ -24,7 +24,7 @@ export class RunnerOrganizationController { | ||||
| 	} | ||||
|  | ||||
| 	@Get() | ||||
| 	@Authorized("ORGANISATION:GET") | ||||
| 	@Authorized("ORGANIZATION:GET") | ||||
| 	@ResponseSchema(ResponseRunnerOrganization, { isArray: true }) | ||||
| 	@OpenAPI({ description: 'Lists all organizations. <br> This includes their address, contact and teams (if existing/associated).' }) | ||||
| 	async getAll() { | ||||
| @@ -37,7 +37,7 @@ export class RunnerOrganizationController { | ||||
| 	} | ||||
|  | ||||
| 	@Get('/:id') | ||||
| 	@Authorized("ORGANISATION:GET") | ||||
| 	@Authorized("ORGANIZATION:GET") | ||||
| 	@ResponseSchema(ResponseRunnerOrganization) | ||||
| 	@ResponseSchema(RunnerOrganizationNotFoundError, { statusCode: 404 }) | ||||
| 	@OnUndefined(RunnerOrganizationNotFoundError) | ||||
| @@ -49,7 +49,7 @@ export class RunnerOrganizationController { | ||||
| 	} | ||||
|  | ||||
| 	@Post() | ||||
| 	@Authorized("ORGANISATION:CREATE") | ||||
| 	@Authorized("ORGANIZATION:CREATE") | ||||
| 	@ResponseSchema(ResponseRunnerOrganization) | ||||
| 	@OpenAPI({ description: 'Create a new organsisation.' }) | ||||
| 	async post(@Body({ validate: true }) createRunnerOrganization: CreateRunnerOrganization) { | ||||
| @@ -66,7 +66,7 @@ export class RunnerOrganizationController { | ||||
| 	} | ||||
|  | ||||
| 	@Put('/:id') | ||||
| 	@Authorized("ORGANISATION:UPDATE") | ||||
| 	@Authorized("ORGANIZATION:UPDATE") | ||||
| 	@ResponseSchema(ResponseRunnerOrganization) | ||||
| 	@ResponseSchema(RunnerOrganizationNotFoundError, { statusCode: 404 }) | ||||
| 	@ResponseSchema(RunnerOrganizationIdsNotMatchingError, { statusCode: 406 }) | ||||
| @@ -88,7 +88,7 @@ export class RunnerOrganizationController { | ||||
| 	} | ||||
|  | ||||
| 	@Delete('/:id') | ||||
| 	@Authorized("ORGANISATION:DELETE") | ||||
| 	@Authorized("ORGANIZATION:DELETE") | ||||
| 	@ResponseSchema(ResponseRunnerOrganization) | ||||
| 	@ResponseSchema(ResponseEmpty, { statusCode: 204 }) | ||||
| 	@ResponseSchema(RunnerOrganizationHasTeamsError, { statusCode: 406 }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user