diff options
author | Kyomotoi <[email protected]> | 2022-10-05 20:04:13 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-10-05 20:04:13 +0800 |
commit | e30503778bf8485d407052057983d3ee8db60938 (patch) | |
tree | efba4f7211745c4d32461e73c64cda084e618382 | |
parent | 8725dc30c520988b0f9e97f1b224bc030715207d (diff) | |
download | ATRI-e30503778bf8485d407052057983d3ee8db60938.tar.gz ATRI-e30503778bf8485d407052057983d3ee8db60938.tar.bz2 ATRI-e30503778bf8485d407052057983d3ee8db60938.zip |
🎨 优化代码
-rw-r--r-- | ATRI/service.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ATRI/service.py b/ATRI/service.py index a969def..53338ba 100644 --- a/ATRI/service.py +++ b/ATRI/service.py @@ -336,15 +336,9 @@ class ServiceTools(object): return False if group_id: - if group_id in auth_group: - return False - else: - return True + return False if group_id in auth_group else True - if not auth_global: - return False - else: - return True + return auth_global @classmethod def service_controller(cls, service: str, is_enabled: bool): |