Fixing problem when clicking an edit link with existing query
Remove debug and correctly execute drive.permissions