We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86db2de commit 9357067Copy full SHA for 9357067
extensions/publisher-command-center/app.py
@@ -81,7 +81,9 @@ def get_visitor_client(token: str | None) -> connect.Client:
81
async def contents(posit_connect_user_session_token: str = Header(None)):
82
visitor = get_visitor_client(posit_connect_user_session_token)
83
84
- contents = visitor.me.content.find()
+ all_content = visitor.content.find()
85
+ contents = [c for c in all_content if c.app_role in ["owner", "editor"]]
86
+
87
for content in contents:
88
content["active_jobs"] = [job for job in content.jobs if job["status"] == 0]
89
0 commit comments