例如,我有以下规则:
function isValidTimestamp(timestampValue){return request.time==timestampValue;}
match /users/{userID}{allow get: if resource.auth != null;allow create:if isValidTimeStamp(request.resource.data.createdAt)}
Run Code Online (Sandbox Code Playgroud)
我想要这样的东西:
function isValidTimestamp(timestampValue){
return request.time == timestampValue;
}
match /users/{userID} {
allow get: if resource.auth != null;
allow create: if isValidTimeStamp(request.resource.data.createdAt);
}
Run Code Online (Sandbox Code Playgroud)
是否可以检查/格式化该文件?