refactor(api): remove unnecessary or wrong is keyword usage

This commit is contained in:
JuniorJPDJ 2022-11-06 18:11:39 +01:00
commit 64e7c68699
12 changed files with 14 additions and 16 deletions

View file

@ -98,7 +98,7 @@ def get_from_permissions(**permissions):
final = LOGGED_IN_SCOPES
for permission_name, value in permissions.items():
if value is False:
if not value:
continue
config = models.PERMISSIONS_CONFIGURATION[permission_name]
final = final | config["scopes"]