diff --git a/src/backend/routes/PersonRouter.ts b/src/backend/routes/PersonRouter.ts index 456ac890..ecd17070 100644 --- a/src/backend/routes/PersonRouter.ts +++ b/src/backend/routes/PersonRouter.ts @@ -33,7 +33,7 @@ export class PersonRouter { app.get(['/api/person'], // common part AuthenticationMWs.authenticate, - AuthenticationMWs.authorise(UserRoles.User), + AuthenticationMWs.authorise(Config.Client.Faces.readAccessMinRole), VersionMWs.injectGalleryVersion, // specific part diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index d1da3ac1..8c320904 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -149,6 +149,8 @@ export module ClientConfig { keywordsToPersons: boolean = true; @ConfigProperty({type: UserRoles}) writeAccessMinRole: UserRoles = UserRoles.Admin; + @ConfigProperty({type: UserRoles}) + readAccessMinRole: UserRoles = UserRoles.User; } @SubConfigClass() diff --git a/src/frontend/app/ui/frame/frame.component.html b/src/frontend/app/ui/frame/frame.component.html index c507204f..ce656e54 100644 --- a/src/frontend/app/ui/frame/frame.component.html +++ b/src/frontend/app/ui/frame/frame.component.html @@ -17,7 +17,7 @@ [routerLink]="['/gallery']" [queryParams]="queryService.getParams()" i18n>Gallery -