Simple changes in Firebase Rules

Simple changes in Firebase Rules

Sanjeev Kumar

6 лет назад

19,882 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Crochet World
Crochet World - 15.03.2023 00:51

How to let
User1 have all permition and (admin) see everything
user2 a have almost all (teacher) see only own profile and own students profile
User 3 only some (student) see only own info and grade

Ответить
Khoan Phùng
Khoan Phùng - 24.11.2022 11:02

Hello how firebase know you was login to chat ?

Ответить
Rj Don
Rj Don - 24.01.2022 23:04

Bro I understood much better in the easiest way this helps me .
keep upload more video and your explanation way is very clear
Thanks again.

Ответить
khalid kamil
khalid kamil - 08.12.2021 18:29

it doesn't work even if i make false for write and read , my app can read and write

Ответить
Kwaku Anansi
Kwaku Anansi - 14.10.2021 19:16

Strait and to the point. This is what everyone wants to know.

Ответить
Dahmari Taplin
Dahmari Taplin - 23.08.2021 03:07

Thank you SIR!!!
Finally somebody helped me solve this problem. God bless you!

Ответить
ADH FA
ADH FA - 13.08.2021 20:09

Thank you very much 🥰☺️

Ответить
Tech Bihandu
Tech Bihandu - 14.01.2021 22:24

Bro please help me. I saw a project made by you. (Named author sanjeev) it is a chat app. You told there, the package name and the firebase account must be changed. I changed it. Read and write was true. But i cant send messages to it. Usernames still not updated. Please kindly help me to solve this problem plz :(

Ответить
yudi mulyana
yudi mulyana - 14.12.2020 19:24

brother, so this is the rule that I made



{

"rules": {

"user": {

"$ user_id": {

".read": "$ user_id === auth.uid || auth.uid == 'zJmj8O14lTRNTiAcF2NhDtA7Z2p1'",

".write": "$ user_id === auth.uid",

}

}

}



}



so I want 'zJmj8O14lTRNTiAcF2NhDtA7Z2p1' to be a user who can read all the data that other users have created, but it doesn't work and still every user reads their own data and a user with auth id zJmj8O14lTRNTiAcF2NhDtA7Z2p1 is only able to read his own data

Ответить
Unstoppable
Unstoppable - 14.09.2020 15:53

hello sanjeev, maine auth!=null,diya hai chalega na,
auth.uid!=null nhi diya

Ответить
Shikandar Singh
Shikandar Singh - 12.07.2020 23:46

Bhai es rules me wahi user login kar sakte h jo pehle se log in hai new user sinup nhi kar sakta LoL 🤣 .. Solution batao.. Sinup ni ho pa raha

Ответить
JohnnyO BG
JohnnyO BG - 15.05.2020 09:16

{
"rules": {
".read": "true"
".write": "true"
}
}

Ответить
Surya Shakti
Surya Shakti - 28.04.2020 20:09

Sir I want to write in firebase this type
Monday
Tuesday
Wednesday
Thursday
In this type how can I wirte in this type thanks

Ответить
Gliese Developer
Gliese Developer - 08.03.2020 10:19

Sir, I need a help ....

I want to make my Database more secure that anyone can't be crack it ever..

Like example :
If in user data contains a particular key (Like : User1273) then only the user can read & write my Database..

As example of java :
if (SecureKey.equals("MyUser56mydata")) {
Read & Write : true
}

Please help me...!!

Ответить
mabel Stevens
mabel Stevens - 02.03.2020 17:24

Hi can you make firebase rules with expiration in account or log in expiration

Ответить
Zubair Javed
Zubair Javed - 23.08.2019 06:18

Yesss helpful !

Ответить
Partua Sinaga
Partua Sinaga - 06.11.2018 20:28

hi Sanjeev,
we haven't seen your tutorial for a long time, we really miss it...
We've just tried your firebase tutorials..
the question is, 

how to make "security rules" to our firebase.....
so that each user can only access "their own" data?
because, every time I change it with rules: {auth id = uid blah3 (as in firebase documentation) I can't access or write my data ...
Like "PROFIL" in this video example, we don't want anyone can change (write) other's profile..

Please help

Ответить
jeet chheda
jeet chheda - 27.10.2018 18:48

what if i want to make sure every user that signs up, Has a seperate database.. having their own seperate data

Ответить
muhammd umar
muhammd umar - 12.10.2018 13:34

kindly past in description

Ответить
muhammd umar
muhammd umar - 12.10.2018 13:33

supper !!!!!

Ответить
Lakshmi narayanan
Lakshmi narayanan - 27.08.2018 07:09

This rule I am always change it is coming false I change so many times but no coming true value

Ответить
saurabh Rajput
saurabh Rajput - 27.03.2018 07:59

sir plz send your What's up no.

Ответить
Jatin Sharma
Jatin Sharma - 27.02.2018 03:18

bro can we add a feature like private message like other messengers

Ответить
Karthik Raja
Karthik Raja - 19.02.2018 20:22

First view first like first comment 😀

Ответить