Skip to content

Commit

Permalink
fix: reference datasets do not have catalogue editors (#2709)
Browse files Browse the repository at this point in the history
  • Loading branch information
niross authored Jul 27, 2023
1 parent 6095af7 commit f15849d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ def can_edit_dataset(user, dataset):
user == dataset.information_asset_owner
or user == dataset.information_asset_manager
or user.is_superuser
or user in dataset.data_catalogue_editors.all()
or (
hasattr(dataset, "data_catalogue_editors")
and user in dataset.data_catalogue_editors.all()
)
)


Expand Down

0 comments on commit f15849d

Please sign in to comment.