Skip to content

Commit

Permalink
Better exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Nov 29, 2024
1 parent 065d397 commit 6b4b296
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oarepo_communities/services/permissions/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ def communities(self, identity):

@abc.abstractmethod
def _get_record_communities(self, record=None, **kwargs):
raise NotImplemented()
raise NotImplementedError()

@abc.abstractmethod
def _get_data_communities(self, data=None, **kwargs):
raise NotImplemented()
raise NotImplementedError()

@abc.abstractmethod
def roles(self, **kwargs):
raise NotImplemented()
raise NotImplementedError()

def needs(self, record=None, data=None, **kwargs):
"""Set of Needs granting permission."""
Expand All @@ -160,7 +160,7 @@ def query_filter_field(self):
returns parent.communities.ids or parent.communities.default
"""
raise NotImplemented()
raise NotImplementedError()

def query_filter(self, identity=None, **kwargs):
"""Filter for current identity."""
Expand Down

0 comments on commit 6b4b296

Please sign in to comment.