conquerorOriginal post
Rank 3: Container
how restrict user to execute function only once or 3 times in a day.
Summary
The user wants to restrict the execution of a function to only once or three times per day. One suggestion is to run the function within itself, but it is deemed too complex. Another suggestion is to grant users permission upon login and remove it after a certain number of executions. The user asks if there are any other ways to achieve this restriction. One possible solution is to create a collection with user IDs and the number of executions. The code can then check if the user has reached their execution limit. Additionally, a CRON function can be created to reset the collection every night at midnight.