mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 14:50:56 +08:00
perf(api): auto discovery has been upgraded (#559)
This commit is contained in:
@@ -253,9 +253,6 @@ def is_app_admin(app=None):
|
||||
if app is None:
|
||||
return False
|
||||
|
||||
if hasattr(current_user, 'username') and current_user.username == 'worker':
|
||||
return True
|
||||
|
||||
app_id = app.id
|
||||
if 'acl_admin' in session.get("acl", {}).get("parentRoles", []):
|
||||
return True
|
||||
|
Reference in New Issue
Block a user