Skip to content

Commit

Permalink
Replace me
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Sánchez committed May 25, 2021
1 parent 188d9b4 commit 78e6704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fast_agave/blueprints/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def user_id_filter_required(self) -> bool:
async def retrieve_object(
self, resource_class: Any, resource_id: str
) -> Any:
resource_id = (
self.current_user_id if resource_id == 'me' else resource_id
)
query = Q(id=resource_id)
if self.user_id_filter_required() and hasattr(
resource_class.model, 'user_id'
Expand Down
2 changes: 1 addition & 1 deletion fast_agave/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.2.dev4'
__version__ = '0.0.2.dev5'

0 comments on commit 78e6704

Please sign in to comment.