select permissions with null and empty user_id