I'm wondering:
Is it possible to block a document create from a server function that is subscribed to the create event?
As means of an additional layer of security?
For my use case it would be to prevent muted users from sending messages during their mute period.
Like a middleware-function? That will be cool but as of now Appwrite function can't go in between some processes.
What you can do now:
- Change permission to a collection - by specific roles for example.
- Delete them right away - this is probably not what you've been looking for.
i typically prevent creation via the API and expose a function to create the document. the function can do any validation and only create the document if validation passes
Okay, makes sense, thanks guys 🙂
create 2 fx. make one for validation and other whatever you like. second fx tigger validation fx and validation fx trigger doc. creation
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- Appwrite 1.9.0 doctor fails tho database...
So i was testing in a local environment the upgrade for 1.9.0, and after getting everything into a running state, i checked the logs that shows : ``` └── Cre...
- Failed to start containers.
I'm trying to install Appwrite locally but struck on the subject point. There is no clear error in logs.