Open creotiv opened 5 months ago
Example of Firestore rule setup
service cloud.firestore {
match /databases/{database}/documents {
// Match any document in the 'orders' collection
match /orders/{orderId} {
allow read, create: if true; // Assuming read and create are unrestricted
// Allow update only if the user is authenticated and only specific fields are being updated
allow update: if request.auth != null && request.auth.uid == resource.data.userId
&& request.resource.data.keys().hasOnly(['status', 'lastUpdated'])
&& request.resource.data.status is string
&& request.resource.data.lastUpdated is timestamp;
}
}
}
This module used for organization managements & settings. For now it will be only consist of stuff management. Owner user should be able to add new registered users to their organization by their user id.
Organization management module may consists of:
Design: Some ideas can be looked here: https://www.figma.com/file/8TvTk1y2jGl70CZBIGngot/Pet%3A%3A-AnimalCarePlanet?type=design&node-id=0%3A1&mode=design&t=ZJfOjSbxvWjXeg3M-1 But for now use just typical material UI (constants/styles)
Functionality:
Acceptance criteria: