This doesn't belong here, doesn't belong in `decorators.py` either but I'd probably move it there to be in the same place as `permission_check`.