Restrict Access to a Page to Once a Week

I am currently trying to restrict access to a page (that can only be accessed once signed in) to once a week and then allow access for members again on a particular day of the week (let’s say Monday for the purpose of the question).

I am relatively new to Wix, Velo, and Javascript and may have overlooked readily available methods of adding this functionality but have so far been unsuccessful. Would a simple change of a variable upon visiting the page suffice?
In asking this though, the process of restricting and allowing access again needs to be automatic or require a ‘flick of a switch’ as this will be part of a project intended for the school I attend, with a potential active userbase of 1200.

Any guidance at all would be greatly appreciated.
Thank you in advance.

  1. Get user-ID of the logged-in user.
    Take a look for more informations here…https://www.wix.com/velo/reference/wix-users

  2. You will have to create a DATABASE, where you will save the current ACCESS-state of every single user.
    That menas you will have to know how to save DATA into a DATABASE.
    See here…
    https://www.wix.com/velo/reference/wix-data/save

  3. Working with dates and times…(first simple steps…)
    https://russian-dima.wixsite.com/meinewebsite/date-time-onclick

This 3-steps should show you the first direction to go.

You can also use the searchbar of this forum and searching by some searchwords, or take a deeper look into the Velo-API-reference.