Skip to content

Commit

Permalink
limit end-point for admins only
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsereko committed Jun 20, 2023
1 parent 0297b07 commit d9c16e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ def get(self):
class InActiveUsersView(Resource):
computed_results = {} # Dictionary to cache computed results

@admin_required
def get(self):
user_schema = UserSchema(many=True)
page = request.args.get('page', 1,type=int)
Expand Down

0 comments on commit d9c16e6

Please sign in to comment.