Procházet zdrojové kódy

Fix: authorization issue (#3530)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.14.0
Kevin Hu před 11 měsíci
rodič
revize
541272eb99
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      api/apps/tenant_app.py

+ 1
- 1
api/apps/tenant_app.py Zobrazit soubor

@@ -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:
if current_user.id != tenant_id and current_user.id != user_id:
return get_json_result(
data=False,
message='No authorization.',

Načítá se…
Zrušit
Uložit