Only allow Admins to add new users

This commit is contained in:
Maarten de Waard 2022-06-15 14:30:19 +02:00
parent 3eea6ab2bf
commit c88d7ebc08
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA

View file

@ -32,6 +32,7 @@ def get_user(id):
@jwt_required()
@cross_origin()
@expects_json(schema)
@admin_required()
def post_user():
data = request.get_json()
res = UserService.post_user(data)