Having the ability to offset a datetime (more specifically the $now variable) in permission conditions would allow us to restrict users permissions for only a certain interval of time, e.g., only being able to view Productions less than 7 days before they're scheduled to start.
Possible syntax could look something like:
{
"startTime": {
"lt": "ADD($now, 604800)"
}
}
604,800 is the number of seconds in 7 days.
This should also work with normal datetime strings, but there's not much purpose to doing so:
Having the ability to offset a datetime (more specifically the
$now
variable) in permission conditions would allow us to restrict users permissions for only a certain interval of time, e.g., only being able to view Productions less than 7 days before they're scheduled to start.Possible syntax could look something like:
604,800 is the number of seconds in 7 days.
This should also work with normal datetime strings, but there's not much purpose to doing so: