Only allow Admins to add new users
This commit is contained in:
parent
3eea6ab2bf
commit
c88d7ebc08
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ def get_user(id):
|
||||||
@jwt_required()
|
@jwt_required()
|
||||||
@cross_origin()
|
@cross_origin()
|
||||||
@expects_json(schema)
|
@expects_json(schema)
|
||||||
|
@admin_required()
|
||||||
def post_user():
|
def post_user():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
res = UserService.post_user(data)
|
res = UserService.post_user(data)
|
||||||
|
|
Loading…
Reference in a new issue