Skip to content

Commit

Permalink
Relax search scope so content we can edit shows up (#41)
Browse files Browse the repository at this point in the history
Removal of the account_id filter enables content that the user has
edit/collaboration permissions on to be selectable.
  • Loading branch information
Jonathan Curran authored Jul 10, 2018
1 parent 87fa328 commit 250fa22
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rsconnect/rsconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ def task_is_finished(task_id):

def app_search(uri, api_key, app_title):
with RSConnect(uri, api_key) as api:
me = api.me()
filters = [('count', 5),
('filter', 'min_role:editor'),
('filter', 'account_id:%d' % me['id']),
('search', app_title)]
apps = api.app_find(filters)
if apps is None:
Expand Down

0 comments on commit 250fa22

Please sign in to comment.