Add input.has_permission convenience method

Adds a has_permission method to Input, and makes core_sieve use it.