Commit 4e7b6c28 by dong

fix20230106

parent dff5ef26
...@@ -110,6 +110,9 @@ def delete_role(): ...@@ -110,6 +110,9 @@ def delete_role():
if not all([_id]): if not all([_id]):
return jsonify(code=RET.PARAMERR, msg="参数不完整") return jsonify(code=RET.PARAMERR, msg="参数不完整")
if _id < 9:
return jsonify(code=RET.PARAMERR, msg="固定角色不能删除!")
try: try:
user_obj = User.query.filter_by(org_id=_id).all() user_obj = User.query.filter_by(org_id=_id).all()
if len(user_obj): if len(user_obj):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment