Moved the dry_run check in set_perms() so that it only triggers if