Remove permit element from static html if it is not visible.