Now, when anyone attempts to read a document in the projects collection, the function specified will be executed first and must return true to allow the operation to proceed.
To prevent the operation from proceeding, you can either return false or throw an Error which will be sent back to the client.