Commits

Yohan Boniface committed b90b903

Only owner can change share_status

  • Participants
  • Parent commits bd1cc4b

Comments (0)

Files changed (1)

leaflet_storage/views.py

         user = self.request.user
         if self.object.owner and not user == self.object.owner:
             del form.fields['edit_status']
+            del form.fields['share_status']
         return form
 
     def form_valid(self, form):