take user privileges into account when verifying date range.

@peterbe This makes it even simpler in terms of code, and acknowledges the user's privileges. 

I think we also need to create a special permission to run those long queries, instead of looking if the user is a superuser. I know that for example Wayne regularly runs long queries and is not a superuser. Do you mind doing that?