grassrootsgrocery / admin-portal

GNU Affero General Public License v3.0
11 stars 6 forks source link

52 ask for confirmation password for triggering automations #109

Closed 6mp closed 1 year ago

6mp commented 1 year ago

This pr addresses #52 and adds two majors things

  1. There is now an adminProtect middleware that can be used on any functions that should only be accessible by administrators as denoted by the "Admin" checkbox in airtable
  2. There is also now a popup showing all the messages sent in the last 7 days before allowing a user to send a recruitment text to prevent double texting. If there were no messages sent in the last 7 days it still brings up a confirmation popup.
image image
railway-app[bot] commented 1 year ago

This PR is being deployed to Railway 🚅

admin-portal: ◻️ REMOVED

zuechai commented 1 year ago

This looks great. Only change I would make is when the message history is shown is to make sure they are appearing in chronological order from oldest to most recent. image