Isn’t this making an assumption about the permission logic? Shouldn’t the logic be to display the footer if the user has permission to add or update needs, rather than testing on the role?