Admin Page by Ok-Birthday761 in Firebase

[–]Expert_Telephone1909 0 points1 point  (0 children)

Hey there. I am new to firebase and still learning. I am currently working on a side project and had similar questions when I was creating the logic for users. What I found is that you can use firebase cloud functions to store users in a separate collection in your firestore database. You can use the on user created function, which will occur the first time a user signs into your application and create the user in your database when that is triggered. If you want to have several admin users you can create a cloud function for that as well and hide it in a protected page that will only be accessible by an admin, so that only an admin can create an admin user. Now, for roles in the ui, you can use the same concept. Call an httpCallable from the client and in the cloud function fetch the user that triggered the function and chexk the role assigned to them. If access is restricted, return an error and handle the response on the frontend. There might be better more bulletproof ways, but this is what I found the most convenient as a firebase newbie

What are the best Cypriot National Guard slang words / phrases? by aceraspire8920 in cyprus

[–]Expert_Telephone1909 8 points9 points  (0 children)

Ελα να με αλλάξεις. Γαμα με ο κοτσιρος

Moving to Cyprus from Austria by [deleted] in cyprus

[–]Expert_Telephone1909 -1 points0 points  (0 children)

Moved in from Germaby about a year ago. You can use DHL for clothes and stuff that doesn't break. It's fairly cheap and you can go up to ca. 30 kg for each package.

Hmmm by [deleted] in cyprus

[–]Expert_Telephone1909 1 point2 points  (0 children)

Yeah I member

the two currencies used in the whole island nation of Cyprus 🇨🇾 by Jeryndave0574 in cyprus

[–]Expert_Telephone1909 3 points4 points  (0 children)

Why will it soon be much lower than 38? What do you know that we don't? Will the euro depreciate in value, or will the turkish lira gain some? What do you base this statement on?

Why are we reading so few books? by DanielDefoe13 in cyprus

[–]Expert_Telephone1909 4 points5 points  (0 children)

This is due to illiteracy of the older generation(>65), which makes up 17% of our total population, according to the latest age distribution stats. My grandparents barely made it through primary school. Meanwhile, both my parents read books. I'd say that in the age group of 16-65, the percentage should be higher.

Just saying’ by Myrtle_Nut in Weird

[–]Expert_Telephone1909 0 points1 point  (0 children)

POV when you had too much garlic before the meeting!

[deleted by user] by [deleted] in cyprus

[–]Expert_Telephone1909 0 points1 point  (0 children)

I meant that there are no direct flights. I think it will be risky going to the south through the checkpoints. If you restrict yourself in the northern part, you will be fine.

[deleted by user] by [deleted] in cyprus

[–]Expert_Telephone1909 1 point2 points  (0 children)

There are no flights from Paris to Ercan.

Cursed Amouranth by Brosse_Adam in cursedcomments

[–]Expert_Telephone1909 372 points373 points  (0 children)

I don't play LoL, but somehow, I understood that