permissions interceptor bugfix (thanks @awentz)