diff options
| author | 2020-04-14 19:03:38 +0530 | |
|---|---|---|
| committer | 2020-04-14 19:03:38 +0530 | |
| commit | 8bf1df9438ecf456b02725e3f9689c5bd885b2a7 (patch) | |
| tree | b2cec3449f27586982e9652c166369d17968db9b | |
| parent | simplify if statement (diff) | |
simpl
Co-Authored-By: Mark <[email protected]>
| -rw-r--r-- | bot/cogs/tags.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py index 79bea3b63..e5492971d 100644 --- a/bot/cogs/tags.py +++ b/bot/cogs/tags.py @@ -58,9 +58,7 @@ class Tags(Cog): @staticmethod def check_accessibility(user: Member, tag: dict) -> bool: """Check if user can access a tag.""" - if tag["restricted_to"].lower() in [role.name.lower() for role in user.roles]: - return True - return False + return tag["restricted_to"].lower() in [role.name.lower() for role in user.roles] @staticmethod def _fuzzy_search(search: str, target: str) -> float: |