@@ -247,7 +247,7 @@ public async Task<ActionResult<ClientConfiguration>> GetConfigAsync(string? id =
247
247
if ( project is null )
248
248
return NotFound ( ) ;
249
249
250
- if ( _isOwnedByOrganization && ! CanAccessOrganization ( project . OrganizationId ) )
250
+ if ( ! CanAccessOrganization ( project . OrganizationId ) )
251
251
return NotFound ( ) ;
252
252
253
253
if ( v . HasValue && v == project . Configuration . Version )
@@ -314,6 +314,7 @@ public async Task<IActionResult> DeleteConfigAsync(string id, string key)
314
314
/// Reset project data
315
315
/// </summary>
316
316
/// <param name="id">The identifier of the project.</param>
317
+ /// <response code="202">Accepted</response>
317
318
/// <response code="404">The project could not be found.</response>
318
319
[ HttpGet ( "{id:objectid}/reset-data" ) ]
319
320
[ Authorize ( Policy = AuthorizationRoles . UserPolicy ) ]
@@ -428,7 +429,7 @@ public async Task<IActionResult> SetNotificationSettingsAsync(string id, string
428
429
[ HttpPost ( "{id:objectid}/{integration:minlength(1)}/notifications" ) ]
429
430
[ Consumes ( "application/json" ) ]
430
431
[ Authorize ( Policy = AuthorizationRoles . UserPolicy ) ]
431
- public async Task < IActionResult > SetIntegrationNotificationSettingsAsync ( string id , string integration , NotificationSettings settings )
432
+ public async Task < IActionResult > SetIntegrationNotificationSettingsAsync ( string id , string integration , NotificationSettings ? settings )
432
433
{
433
434
if ( ! String . Equals ( Project . NotificationIntegrations . Slack , integration ) )
434
435
return NotFound ( ) ;
@@ -442,7 +443,7 @@ public async Task<IActionResult> SetIntegrationNotificationSettingsAsync(string
442
443
return NotFound ( ) ;
443
444
444
445
if ( ! organization . HasPremiumFeatures )
445
- return PlanLimitReached ( $ "Please upgrade your plan to enable { integration . TrimStart ( '@' ) } integration.") ;
446
+ return PlanLimitReached ( $ "Please upgrade your plan to enable { integration } integration.") ;
446
447
447
448
if ( settings is null )
448
449
project . NotificationSettings . Remove ( integration ) ;
0 commit comments