Always allow staff to edit notes
authorCharles Connell <charles@connells.org>
Tue, 20 May 2014 23:07:27 +0000 (19:07 -0400)
committerCharles Connell <charles@connells.org>
Tue, 20 May 2014 23:07:27 +0000 (19:07 -0400)
karmaworld/templates/notes/note_base.html

index 4b1593aaa4d19ef0af8f175a0fd0accfc4b5b1ce..00bd48c744a72f690bf063879138f59aa035d715 100644 (file)
                 </button>
               {% endif %}
 
-              {% if note.user == request.user %}
+              {% if note.user == request.user or user.is_staff %}
                 <button id="edit-button" data-reveal-id="note-edit-dialog" class="modify-button"> <i class="fa fa-edit"></i> Edit This Note</button>&nbsp;&nbsp;
               {% endif %}