Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHuSh committed Nov 20, 2024
1 parent 27d28f1 commit 6af4cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/apps/tenant_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def create(tenant_id):
@manager.route('/<tenant_id>/user/<user_id>', methods=['DELETE'])
@login_required
def rm(tenant_id, user_id):
if current_user.id != tenant_id or current_user.id != tenant_id:
if current_user.id != tenant_id and current_user.id != user_id:
return get_json_result(
data=False,
message='No authorization.',
Expand Down

0 comments on commit 6af4cbf

Please sign in to comment.