Browse Source

Remove bug nas permissões de eventos

pull/164/head 3.0.41
Sesostris Vieira 2 years ago
parent
commit
ed2a756fa8
  1. 3
      sigi/apps/eventos/admin.py

3
sigi/apps/eventos/admin.py

@ -218,12 +218,13 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin):
{ {
"can_createcourse": ( "can_createcourse": (
perm perm
and obj
and obj.moodle_courseid is None and obj.moodle_courseid is None
and obj.tipo_evento.moodle_template_courseid is not None and obj.tipo_evento.moodle_template_courseid is not None
and obj.tipo_evento.moodle_categoryid is not None and obj.tipo_evento.moodle_categoryid is not None
), ),
"can_updateparticipantes": ( "can_updateparticipantes": (
perm and obj.moodle_courseid is not None perm and obj and obj.moodle_courseid is not None
), ),
} }
) )

Loading…
Cancel
Save