Skip to content

Commit abe0ae3

Browse files
committed
In case of slack change acess check to also include unlisted visibility
1 parent 7d11fd6 commit abe0ae3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llmstack/apps/apis.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,7 @@ def run_async(self, request, uid):
11621162
)
11631163
# Improve this check later
11641164
if app.visibility == AppVisibility.PUBLIC or (
1165-
(app.visibility == AppVisibility.PRIVATE or app.visibility == AppVisibility.ORGANIZATION)
1166-
and request_user
1167-
and request_user.is_authenticated
1165+
app.visibility < AppVisibility.PUBLIC and request_user and request_user.is_authenticated
11681166
):
11691167
session_id = self._get_slack_app_session_id(request.data, uid)
11701168
slack_message_text = re.sub(r"<@.*>(\|)?", "", request.data["event"]["text"]).strip()

0 commit comments

Comments
 (0)