forked from Github-Mirrors/canaille
refactor: remove unused var
This commit is contained in:
parent
89354e281f
commit
0363a0a76e
3 changed files with 3 additions and 3 deletions
|
@ -174,7 +174,7 @@ class User(canaille.core.models.User, LDAPObject):
|
|||
self._readable_fields = set()
|
||||
self._writable_fields = set()
|
||||
|
||||
for access_group_name, details in current_app.config["CANAILLE"]["ACL"].items():
|
||||
for details in current_app.config["CANAILLE"]["ACL"].values():
|
||||
filter_ = self.acl_filter_to_ldap_filter(details["FILTER"])
|
||||
if not filter_ or (
|
||||
self.id and conn.search_s(self.id, ldap.SCOPE_SUBTREE, filter_)
|
||||
|
|
|
@ -263,7 +263,7 @@ class User(canaille.core.models.User, MemoryModel):
|
|||
self._permissions = set()
|
||||
self._readable_fields = set()
|
||||
self._writable_fields = set()
|
||||
for access_group_name, details in current_app.config["CANAILLE"]["ACL"].items():
|
||||
for details in current_app.config["CANAILLE"]["ACL"].values():
|
||||
if self.match_filter(details["FILTER"]):
|
||||
self._permissions |= set(details["PERMISSIONS"])
|
||||
self._readable_fields |= set(details["READ"])
|
||||
|
|
|
@ -183,7 +183,7 @@ class User(canaille.core.models.User, Base, SqlAlchemyModel):
|
|||
self._permissions = set()
|
||||
self._readable_fields = set()
|
||||
self._writable_fields = set()
|
||||
for access_group_name, details in current_app.config["CANAILLE"]["ACL"].items():
|
||||
for details in current_app.config["CANAILLE"]["ACL"].values():
|
||||
if self.match_filter(details["FILTER"]):
|
||||
self._permissions |= set(details["PERMISSIONS"])
|
||||
self._readable_fields |= set(details["READ"])
|
||||
|
|
Loading…
Reference in a new issue