branch | 3.26 |
changeset 12677 | 9f03df82f8de |
parent 12676 | c96aa316d06b |
child 12709 | 280c9db41038 |
--- a/cubicweb/web/views/autoform.py Thu Jun 27 12:27:37 2019 +0200 +++ b/cubicweb/web/views/autoform.py Thu Jun 27 12:20:22 2019 +0200 @@ -871,6 +871,7 @@ schema = self._cw.vreg.schema for rtype, role in self.display_fields: yield (schema[rtype], role) + return if self.edited_entity.has_eid() and not self.edited_entity.cw_has_perm('update'): return action = 'update' if self.edited_entity.has_eid() else 'add'