diff MoinMoin/templates/modify.html @ 2788:dde7055f4361

fix #446 ACL Admin Rights Given to Users with Write Authority
author RogerHaase <haaserd@gmail.com>
date Wed, 17 Sep 2014 11:53:01 -0700
parents 31628ac3ec21
children cfdec0c11e3d
line wrap: on
line diff
--- a/MoinMoin/templates/modify.html	Fri Sep 12 14:46:18 2014 -0700
+++ b/MoinMoin/templates/modify.html	Wed Sep 17 11:53:01 2014 -0700
@@ -49,7 +49,8 @@
             {% if form['content_form'].help %}
                 <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
             {% endif %}
-            {{ meta_editor(form['meta_form']) }}
+            {% set may_admin = user.may.admin(fqname) %}
+            {{ meta_editor(form['meta_form'], may_admin) }}
             <dl>
                 {{ forms.render(form['extra_meta_text']) }}
             </dl>