diff --git a/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java b/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java index 20e5f70..d48f4e5 100644 --- a/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java +++ b/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java @@ -38,7 +38,7 @@ public class SecurityConfig { .authorizeHttpRequests(auth -> auth .requestMatchers("/form/**").hasAuthority(PermissionClaimDto.USER.getValue()) .requestMatchers("/head_mod/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) - .requestMatchers("/particles/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) +// .requestMatchers("/particles/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) .requestMatchers("/files/save/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) .anyRequest().permitAll() ) diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 226283f..03a8d52 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -113,8 +113,4 @@ export const routes: Routes = [ path: 'login', loadComponent: () => import('./login/login.component').then(m => m.LoginDialogComponent) }, - { - path: 'particles', - loadComponent: () => import('./particles/particles.component').then(m => m.ParticlesComponent) - }, ]; diff --git a/frontend/src/app/particles/particles.component.ts b/frontend/src/app/particles/particles.component.ts index 5ce1018..ad98194 100644 --- a/frontend/src/app/particles/particles.component.ts +++ b/frontend/src/app/particles/particles.component.ts @@ -121,7 +121,6 @@ export class ParticlesComponent { this.matSnackBar.open('JSON file downloaded', '', {duration: 2000}); } - public copyJson() { navigator.clipboard.writeText(this.generateJson()).then(() => { this.matSnackBar.open('Copied to clipboard', '', {duration: 2000})