Added permission check in network deletion.