CreateThrive / react-firebase-admin

React ⚛️ starter kit with Firebase 🔥 and Bulma for setting up an admin dashboard - Highly scalable, PWA, Serverless

Home Page:https://docs.react-firebase.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove 'delete' and 'edit' button for admin users in the table

tpiaggio opened this issue · comments

Right now an admin user can edit or delete any user in the database. We shouldn't let an admin user edit or delete other admin users, so we should hide that buttons in case the the user is an admin. We should also verify that on the database rules