how i can set a limit for users with a specific label to create a maximum number of documents?
- 0
- General
- Web
Just like many apps have premium vs free users, and free users can use the app but with some limitations; i wanna implement something similar. in my app, the premium users have a label and the free don't. My plan is that, each free user can create maximum of 4 posts in a bucket, where the premium users can create as many as they want. So i would need a variable in the DB, that no user can update. I also need to implement this checking if any user is creating more documents then that limit number
I could check the db for how many documents the user have already created, before creating each post. but this doesn't sound the perfect way to handle it, also not much secure. Can you think of any way to implement this feature securely within appwrite?
Recommended threads
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- ISO help
I’m writing a project specification paper. Please let me know if anyone has ISO/IEC/IEEE 29148:2018 — Requirements Engineering, or if someone can check the docu...
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?