当我的规则如下时,我的问题是关于一个用例:
match /collection/{docID} {
allow read,write,update : if isSomethingTrue();
allow read: if request.auth.uid != null && isOnotherFunctionWithGETInside();
allow create: if request.auth.uid != null;
}
如果我可以将阅读规则翻译为:
allow read: isSomethingTrue() || (request.auth.uid != null && isOnotherFunctionWithGETInside())
,如果是,如果isSomething()返回true,第二部分是否不执行?那么它将在惰性模式下评估吗?
这对我来说是一个重要的问题,因为如果我仅交换两个允许读取行的序列(因为第二个中的get()函数),那么账单(服务器读取操作)可能会有很大的不同阅读规则)。
谢谢。