Closed ap0nia closed 5 months ago
Oops, yeah I forgot about the discussion. Re: #890
Seems about right ¯_(ツ)_/¯
I'm not entirely sure what's going on, and I don't know what the risks are to merging this, so you can merge it in when you feel fit @ap0nia
Features (based on #890)
Correct columns in schema
The
id
column is required and the primary key for identification. ThegoogleId
is optional, and populated once the user has logged in with Google OAuth. Users logging in via Google will be checked using thegoogleId
column instead ofid
column.Functionality
Loading user data
No visibility checks, just loads the schedule as asked. This may be adjusted to be more like the "viewing" functionality, which isn't currently active on the frontend.
Viewing user data
Assumes a user ID requesting another user ID flow. Checks that the requested schedule is visible.