Fix for not to display data agreement checkbox for a dataset if the dataset has no data. Also a link to add data for a metadata only dataset will be displayed only if the user is authorized to edit the dataset.