File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -450,33 +450,6 @@ private async Task ApplyDatabaseUpdate(Installation? installation)
450450 ) ;
451451 }
452452
453- private async Task VerifyThatUserIsAuthorizedToUpdateDataForInstallation (
454- Installation ? installation
455- )
456- {
457- var accessibleInstallationCodes = await accessRoleService . GetAllowedInstallationCodes ( ) ;
458- if (
459- installation == null
460- || accessibleInstallationCodes . Contains (
461- installation . InstallationCode . ToUpper ( CultureInfo . CurrentCulture )
462- )
463- )
464- return ;
465-
466- throw new UnauthorizedAccessException (
467- $ "User does not have permission to update robot in installation { installation . Name } "
468- ) ;
469- }
470-
471- private void NotifySignalROfUpdatedRobot ( Robot robot , Installation installation )
472- {
473- _ = signalRService . SendMessageAsync (
474- "Robot updated" ,
475- installation ,
476- robot != null ? new RobotResponse ( robot ) : null
477- ) ;
478- }
479-
480453 public void DetachTracking ( FlotillaDbContext context , Robot robot )
481454 {
482455 context . Entry ( robot ) . State = EntityState . Detached ;
You can’t perform that action at this time.
0 commit comments