Skip to content

Commit dd0e257

Browse files
committed
Allow 'SUPER_USER' admins to access API.
1 parent 57ddf9d commit dd0e257

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controllers/user-statuses-controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class UserStatusesController extends Controller {
8686
*/
8787
@Response(501, 'Server error')
8888
@Response(401, 'Authentication fail')
89+
@Security('SUPER_ADMIN')
8990
@Security('ADMIN')
9091
@Get('statuses')
9192
public async getUserStatuses(
@@ -107,6 +108,7 @@ export class UserStatusesController extends Controller {
107108
*/
108109
@Response(501, 'Server error')
109110
@Response(401, 'Authentication fail')
111+
@Security('SUPER_ADMIN')
110112
@Security('ADMIN')
111113
@Get('statuses/{platform}/{userId}')
112114
public async getUserReports(platform: Platform, userId: string): Promise<UserStatus[]> {
@@ -121,6 +123,7 @@ export class UserStatusesController extends Controller {
121123
*/
122124
@Response(501, 'Server error')
123125
@Response(401, 'Authentication fail')
126+
@Security('SUPER_ADMIN')
124127
@Security('ADMIN')
125128
@Put('statuses/{id}')
126129
public async updateUser(

0 commit comments

Comments
 (0)