Project

General

Profile

0003-django_rbac-remove-useless-elif.patch

Valentin Deniaud, 04 April 2019 05:07 PM

Download (888 Bytes)

View differences:

Subject: [PATCH 03/13] django_rbac: remove useless elif

 src/django_rbac/backends.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
src/django_rbac/backends.py
continue
elif key == '__all__':
continue
elif key.startswith('ou.'):
if perm_or_perms & value:
return True
elif perm_or_perms & value:
elif perm_or_perms & set(value):
return True
return False