Rank 2: Process
Hello community,
I have been working on creating a document that incorporates document level security through the usage of the Permission and Roles classes provided by the Appwrite NPM package. In the same project, I successfully utilised permissions in a cloud function. However, when attempting to make a request to the database API for creating the document in my a certain collection, I encountered an error.
I have reviewed the available permissions documentation. Despite following the documentation diligently, I have been unable to identify the root cause of the issue.
To provide further context, I have attached screenshots of some sections of the function code.
In one of the screenshots I have defined the api where define functions to utilised by the frontend while interacting with the database and contextually implementing or consuming them in the handle submit. I kindly request your assistance in resolving this matter. Any help would be greatly appreciated.
Thank you in advance.