У нас вы можете посмотреть бесплатно How to write Firestore security rules for a production ready app или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I had gotten a request on my previous security rules video, for how to write more custom and valid security rules for firestore than what flutterflow provides. And that is exactly what I do in this video. Just watch the video, no more description needed... Here is code I used to explain in the video: rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /group/{document} { allow create: if false; allow read: if /databases/$(database)/documents/users/$(request.auth.uid) in resource.data.members; allow write: if /databases/$(database)/documents/users/$(request.auth.uid) in resource.data.writeAccess && request.resource.data.owner == resource.data.owner; allow delete: if /databases/$(database)/documents/users/$(request.auth.uid) == resource.data.owner; } match /group/{parent}/blog/{document} { allow create: if /databases/$(database)/documents/users/$(request.auth.uid) in get(/databases/$(database)/documents/group/$(parent)).data.writeAccess; allow read: if true; allow write: if /databases/$(database)/documents/users/$(request.auth.uid) in get(/databases/$(database)/documents/group/$(parent)).data.writeAccess; allow delete: if /databases/$(database)/documents/users/$(request.auth.uid).auth.uid == get(/databases/$(database)/documents/group/$(parent)).data.owner; } match /users/{document} { allow create: if request.auth != null; allow read: if request.auth != null; allow write: if request.auth.uid == document; allow delete: if false; } match /users/{parent}/post/{document} { allow create: if request.auth.uid == parent; allow read: if request.auth.uid == parent; allow write: if request.auth.uid == parent; allow delete: if false; } } } #firestore #firebase #rules #security #datasecurity #backend #software #softwaredeveloper #database #databasearchitecture #developer #backenddevelopment #datastructure #tutorial #coding #education #learning #vscode #programming #realworldexamples #realworldapplications