Add hook_permission to inout