mirror of https://github.com/MISP/misp-dashboard
chg: [auth] Simplified condition
parent
8da3d509cd
commit
1b4df61591
|
@ -138,8 +138,6 @@ class User(UserMixin):
|
||||||
dashboard_access = me_json.get('UserSetting', {}).get('dashboard_access', False)
|
dashboard_access = me_json.get('UserSetting', {}).get('dashboard_access', False)
|
||||||
if dashboard_access is not False:
|
if dashboard_access is not False:
|
||||||
return dashboard_access is True or dashboard_access == 1
|
return dashboard_access is True or dashboard_access == 1
|
||||||
else:
|
|
||||||
return False
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue