Skip to content

Commit

Permalink
fix(app): list autosaves only for the current user (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Jun 21, 2022
1 parent cdff4d4 commit d67d8ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renku_notebooks/api/classes/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def from_branch_name(cls, user, namespace_project, autosave_branch_name):
f"Invalid branch name {autosave_branch_name} for autosave branch."
)
return None
if match_res.group("username") != user.username:
return None
return cls(
user,
namespace_project,
Expand Down

0 comments on commit d67d8ad

Please sign in to comment.