Skip to content

Commit

Permalink
Allow 'SUPER_USER' admins to access API.
Browse files Browse the repository at this point in the history
  • Loading branch information
haimkastner committed Apr 1, 2019
1 parent 57ddf9d commit dd0e257
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/user-statuses-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export class UserStatusesController extends Controller {
*/
@Response(501, 'Server error')
@Response(401, 'Authentication fail')
@Security('SUPER_ADMIN')
@Security('ADMIN')
@Get('statuses')
public async getUserStatuses(
Expand All @@ -107,6 +108,7 @@ export class UserStatusesController extends Controller {
*/
@Response(501, 'Server error')
@Response(401, 'Authentication fail')
@Security('SUPER_ADMIN')
@Security('ADMIN')
@Get('statuses/{platform}/{userId}')
public async getUserReports(platform: Platform, userId: string): Promise<UserStatus[]> {
Expand All @@ -121,6 +123,7 @@ export class UserStatusesController extends Controller {
*/
@Response(501, 'Server error')
@Response(401, 'Authentication fail')
@Security('SUPER_ADMIN')
@Security('ADMIN')
@Put('statuses/{id}')
public async updateUser(
Expand Down

0 comments on commit dd0e257

Please sign in to comment.