At somebody's discretion phrase
The freedom to decide to do something at your own will
You want to deal with this matter is at your discretion.
The boss gave Tom the permission to do the job at his own discretion.
Said when one is looking back on something enjoyable or worthwhile in the moment that it was happening even though it was impermanent
The party came to an end, but it was fun while it lasted.