Advertisement
Guest User

Untitled

a guest
Jan 9th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. path /users/$uid/$password is Password {
  3. read() = isCurrentUser($uid);
  4. write() = isCurrentUser($uid);
  5. }
  6.  
  7. type Password {
  8. service: String,
  9. password: String,
  10. username: String | Null
  11. }
  12.  
  13. isCurrentUser(userid) = auth != null && auth.uid == userid;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement