"RP Hide Edit button form view"
This module helps to show edit button in form view based on condition.