Fixed set_permissions example