diff options
Diffstat (limited to 'app/templates/packages/view.html')
| -rw-r--r-- | app/templates/packages/view.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index ecd6b35..47d74ea 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -10,7 +10,10 @@ <span class="icon_message"></span> This package needs to be approved before it can be found. {% if package.checkPerm(current_user, "APPROVE_NEW") %} - <a href="{{ package.getApproveURL() }}">Approve</a> + <form method="post" action="{{ package.getApproveURL() }}"> + <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> + <input type="submit" value="Approve" /> + </form> {% endif %} <div style="clear: both;"></div> </div> |
