We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e322a28 commit 736185aCopy full SHA for 736185a
1 file changed
docs/content/advanced/authorization.md
@@ -47,8 +47,8 @@ def authorize(enterprise_id, team_id, logger):
47
# You can implement your own logic to fetch token here
48
for team in installations:
49
# enterprise_id doesn't exist for some teams
50
- is_valid_enterprise = True if (("enterprise_id" not in team) or (enterprise_id == team["enterprise_id"])) else False
51
- if ((is_valid_enterprise == True) and (team["team_id"] == team_id)):
+ is_valid_enterprise = "enterprise_id" not in team or enterprise_id == team["enterprise_id"]
+ if is_valid_enterprise and team["team_id"] == team_id:
52
# Return an instance of AuthorizeResult
53
# If you don't store bot_id and bot_user_id, could also call `from_auth_test_response` with your bot_token to automatically fetch them
54
return AuthorizeResult(
0 commit comments