allow group members to add items to group lists directly

NOTE: this will be the case regardless of privacy settings of the list
This commit is contained in:
Hugh Rundle
2021-09-27 18:41:29 +10:00
parent 81e5ff5b76
commit c87712c995
2 changed files with 10 additions and 4 deletions

View File

@ -123,7 +123,7 @@
</form>
{% if request.user.is_authenticated and not list.curation == 'closed' or request.user == list.user %}
<h2 class="title is-5 mt-6">
{% if list.curation == 'open' or request.user == list.user %}
{% if list.curation == 'open' or request.user == list.user or is_group_member %}
{% trans "Add Books" %}
{% else %}
{% trans "Suggest Books" %}
@ -176,7 +176,7 @@
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="list" value="{{ list.id }}">
<button type="submit" class="button is-small is-link">{% if list.curation == 'open' or request.user == list.user %}{% trans "Add" %}{% else %}{% trans "Suggest" %}{% endif %}</button>
<button type="submit" class="button is-small is-link">{% if list.curation == 'open' or request.user == list.user or is_group_member %}{% trans "Add" %}{% else %}{% trans "Suggest" %}{% endif %}</button>
</form>
</div>
</div>