raimohanska / ourboard

An online whiteboard
Other
763 stars 58 forks source link

App lets you see and make edits to board after signing out #155

Closed jussisaurio closed 3 years ago

jussisaurio commented 3 years ago

Create restricted board Go to board. Sign out. UI still lets you see the content and do stuff. Do something, e.g. create a note. Refresh. UI still lets you see the board (although backend logs “Access denied”

Suspecting this has to do with the new synchronization mechanism

jussisaurio commented 3 years ago

Resolved it like this for the time being: https://github.com/raimohanska/ourboard/commit/7261834f87c9dca59467dd711697af56a4727409 (Show a different message if user has local copy of restricted board and is logged out)

raimohanska commented 3 years ago

I think that's a good solution. Further, if the user intentionally signs out, we should probably clear all private boards from local storage, amirite?

raimohanska commented 3 years ago

Added clearing local boards on login. Try!