Skip to content

Commit 8e9fd13

Browse files
committed
Merge pull request sshwsfc#156 from exilePL/master
Fixed user permission check in inline model, where only people who have ...
2 parents 631f129 + a49214b commit 8e9fd13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xadmin/templates/xadmin/edit_inline/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
{% block box_title %}
88
{% if not formset.formset.detail_page %}
9+
{% if has_add_permission %}
910
<a class="add-row" id="{{ prefix }}-add-row" href="javascript:void(0)"><i class="icon fa fa-plus"></i></a>
1011
{% endif %}
12+
{% endif %}
1113
{{ formset.opts.verbose_name_plural|title }}
1214
{% endblock box_title %}
1315

0 commit comments

Comments
 (0)