mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
quality: make linter gods happy
This commit is contained in:
parent
c19e2b7b19
commit
38b3cfddd8
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ import ldap.sasl
|
||||||
import base64
|
import base64
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import hashlib
|
||||||
import glob
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
||||||
|
@ -50,7 +49,7 @@ def user_is_allowed_on_domain(user: str, domain: str) -> bool:
|
||||||
|
|
||||||
ctime = portal_settings_path.stat().st_ctime
|
ctime = portal_settings_path.stat().st_ctime
|
||||||
if domain not in DOMAIN_USER_ACL_DICT or DOMAIN_USER_ACL_DICT[domain]["ctime"] < time.time():
|
if domain not in DOMAIN_USER_ACL_DICT or DOMAIN_USER_ACL_DICT[domain]["ctime"] < time.time():
|
||||||
users = set()
|
users: set[str] = set()
|
||||||
for infos in read_json(str(portal_settings_path))["apps"].values():
|
for infos in read_json(str(portal_settings_path))["apps"].values():
|
||||||
users = users.union(infos["users"])
|
users = users.union(infos["users"])
|
||||||
DOMAIN_USER_ACL_DICT[domain] = {}
|
DOMAIN_USER_ACL_DICT[domain] = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue