how restrict user to execute function only once or 3 times in a day.
You'll need to create some inner-logic for that. For example, you can create a collection with
- User ID,
- Number of execution
Then check if the user is reached is limit.
Then any night at midnight you can create a CRON function that will empty the collection, so it's ready for the next day.
any other way.
A more complex one would be to give any user permission upon login And, then remove it after N execution.
But this is to complex for that task.
I think the best way would be to run the function within the function.
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...