diff MoinMoin/themes/basic/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 1f7d8cc15805
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Fri Sep 12 14:46:18 2014 -0700
+++ b/MoinMoin/themes/basic/templates/modify.html	Wed Sep 17 11:53:01 2014 -0700
@@ -60,10 +60,11 @@
                         </div>
                     </div>
                 </div>
+
+                {% set field = form['meta_form']['acl'] %}
                 {% if user.may.admin(fqname) %}
                     <div class="tab-pane active" id="acl">
                         <div class="row">
-                            {% set field = form['meta_form']['acl'] %}
                             <div class="col-lg-6">
                                 <div class="form-group">
                                     {{ gen.label(field) }}
@@ -72,6 +73,8 @@
                             </div>
                         </div>
                     </div>
+                {% else %}
+                    {{ gen.input(field, type='hidden', class='form-control') }}
                 {% endif %}
                 <div class="tab-pane active" id="help">
                     {% if form['content_form'].help %}