Skip to content

Commit

Permalink
fix(user): allow subscribers to fetch user information
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Nov 10, 2024
1 parent 5fe2822 commit e321a2a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/helpers/security-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,24 @@ const allSecurityGroups = [
SecurityGroup.KEY_HOLDER,
];

const allSecuritySubscriberGroups = [
SecurityGroup.ADMIN,
SecurityGroup.BOARD,
SecurityGroup.AVICO,
SecurityGroup.BAC,
SecurityGroup.KEY_HOLDER,
SecurityGroup.AUDIO_SUBSCRIBER,
SecurityGroup.SCREEN_SUBSCRIBER,
SecurityGroup.LIGHTS_SUBSCRIBER,
];

/**
* Security groups that are available for each endpoint
* Giving specific type will break tsoa; can only be done after the fact
*/
export const securityGroups = {
user: {
base: allSecurityGroups,
base: allSecuritySubscriberGroups,
},
audit: {
base: allSecurityGroups,
Expand Down

0 comments on commit e321a2a

Please sign in to comment.