Skip to content

Commit

Permalink
Fixing bug that only allowed project writers to update 'last accessed…
Browse files Browse the repository at this point in the history
…' field in bookmarks
  • Loading branch information
Spurs20 committed Mar 2, 2023
1 parent 20523bc commit ad3e6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slycat/web/server/handlers.py
Expand Up @@ -2341,7 +2341,7 @@ def get_bookmark(bid):

# Update last accessed
bookmark = database.get("bookmark", bid)
slycat.web.server.authentication.require_project_writer(project)
slycat.web.server.authentication.require_project_reader(project)
bookmark["last_accessed"] = datetime.datetime.utcnow().isoformat()
database.save(bookmark)

Expand Down

0 comments on commit ad3e6aa

Please sign in to comment.