I'll help you fix the team member deletion issue. Let me check and update the delete functionality.
The main issues that could prevent team deletion are:
Try deleting a team member now, and if it still doesn't work, check the browser console and network tab for specific error messages that can help us identify the exact issue.
To configure the generation, complete these steps:
I'll update the authentication system to grant admin privileges to a specific Gmail address. This way, anyone who logs in with that email will automatically get admin access.
I've updated the authentication system to allow multiple admin emails. Now, both "mdsa134867@gmail.com" and "admin@myfood.com" will have admin privileges when they log in.
isAdmin function now checks against an array of authorized admin email addressesIf you want to use a different email address than "admin@myfood.com", simply replace it with your preferred Gmail address in the adminEmails array.
no suppose i create a team member and give men role employee, when they signing from that gmail ,, his role will be automatically employee, and he will get the access a employee can have , also create a page for permission ,here admin can select all teams (employee, chef) members access permissions,
You can send messages while the preview loads