fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Celery to 4.3
[wolnelektury.git]
/
src
/
catalogue
/
api
/
fields.py
diff --git
a/src/catalogue/api/fields.py
b/src/catalogue/api/fields.py
index
48c0095
..
371da38
100644
(file)
--- a/
src/catalogue/api/fields.py
+++ b/
src/catalogue/api/fields.py
@@
-25,7
+25,8
@@
class BookLiked(serializers.ReadOnlyField):
class EmbargoURLField(AbsoluteURLField):
def to_representation(self, value):
request = self.context['request']
class EmbargoURLField(AbsoluteURLField):
def to_representation(self, value):
request = self.context['request']
- if Membership.is_active_for(request.user):
+ # FIXME: See #3955.
+ if True or Membership.is_active_for(request.user):
return super().to_representation(value)
else:
return None
return super().to_representation(value)
else:
return None