Skip to content

Commit

Permalink
CSCEXAM-1404 User agreement prompt for all user roles
Browse files Browse the repository at this point in the history
  • Loading branch information
lupari committed Jan 28, 2025
1 parent cfdebeb commit 5086696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ PUT /app/maintenance/:id
DELETE /app/maintenance/:id controllers.facility.MaintenancePeriodController.removeMaintenancePeriod(id: Long)

#######################################################
GET /attributes controllers.user.SessionController.getAttributes(request: Request)
GET /app/attributes controllers.user.SessionController.getAttributes(request: Request)

# static assets
GET /*path controllers.assets.FrontendController.assetOrDefault(path)
5 changes: 3 additions & 2 deletions ui/src/app/administrative/settings/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import { AppConfig } from 'src/app/administrative/administrative.model';
export class SettingsService {
constructor(private http: HttpClient) {}

updateAgreement$ = (config: AppConfig) => this.http.put('/app/settings/agreement', { value: config.eula });
updateAgreement$ = (config: AppConfig, bypassAgreementUpdate = false) =>
this.http.put('/app/settings/agreement', { value: config.eula, majorUpdate: bypassAgreementUpdate });

updateDeadline$ = (config: AppConfig) => this.http.put('/app/settings/deadline', { value: config.reviewDeadline });

updateReservationWindow$ = (config: AppConfig) =>
this.http.put('/app/settings/reservationWindow', { value: config.reservationWindowSize });

listAttributes$ = () => this.http.get<string[]>('/attributes');
listAttributes$ = () => this.http.get<string[]>('app/attributes');

getConfig$ = () => this.http.get<AppConfig>('/app/config');
}

0 comments on commit 5086696

Please sign in to comment.