简体   繁体   English

Firebase 实时数据库规则过滤列表

[英]Firebase realtime database Rules to filter lists

I want to save some stuff on a firebase real time database and only allow users access to elements that contain certain values.我想在 firebase 实时数据库中保存一些内容,并且只允许用户访问包含特定值的元素。

More specificly i want to have events as a list and users saved as a list: -users have their uid and roles (eg "admin", "any", etc) -events have some data that should only be allowed for users that have one or more of the specified roles更具体地说,我希望将事件作为列表并将用户保存为列表: - 用户有他们的 uid 和角色(例如“管理员”,“任何”等) - 事件有一些数据应该只允许用户拥有一个或多个指定角色

How would i go and filter the list using rules?我将如何 go 并使用规则过滤列表?

Ok so thanks to Frank van Puffelen i do now know that what i wanted to do (wich was filter data cia rules) does not work好的,感谢 Frank van Puffelen,我现在知道我想做的事情(过滤数据 cia 规则)不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM