Customize firestore rules

My "users" collection has a specific field called "role" which I want only a few set of admins to edit. Basically users should not be able to edit their own role. Only admins can do it.

How to achieve this with the FIrestore Rules editor in FlutterFlow?
Or should I use firebase console directly? If I use firebase console, the flutterflow interface keeps showing "rules out of date". What to do?

7
4 replies