#19 Tests
* refactors sharing user setting by introducing share_with(user) and share_with_list(user_list) for BaseObject for a more self-explanatory sharing
This commit is contained in:
@@ -235,12 +235,13 @@ class Compensation(AbstractCompensation):
|
||||
Checks whether a given user has access to this object
|
||||
|
||||
Args:
|
||||
user ():
|
||||
user (User): The user to be checked
|
||||
|
||||
Returns:
|
||||
|
||||
"""
|
||||
return self.intervention.users.filter(id=user.id)
|
||||
# Compensations inherit their shared state from the interventions
|
||||
return self.intervention.is_shared_with(user)
|
||||
|
||||
def get_LANIS_link(self) -> str:
|
||||
""" Generates a link for LANIS depending on the geometry
|
||||
|
||||
Reference in New Issue
Block a user