Skip to content

Commit 9357067

Browse files
authored
get collaborating content (#148)
1 parent 86db2de commit 9357067

File tree

1 file changed

+3
-1
lines changed
  • extensions/publisher-command-center

1 file changed

+3
-1
lines changed

extensions/publisher-command-center/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def get_visitor_client(token: str | None) -> connect.Client:
8181
async def contents(posit_connect_user_session_token: str = Header(None)):
8282
visitor = get_visitor_client(posit_connect_user_session_token)
8383

84-
contents = visitor.me.content.find()
84+
all_content = visitor.content.find()
85+
contents = [c for c in all_content if c.app_role in ["owner", "editor"]]
86+
8587
for content in contents:
8688
content["active_jobs"] = [job for job in content.jobs if job["status"] == 0]
8789

0 commit comments

Comments
 (0)