diff --git a/goals/views.py b/goals/views.py index 95917b2..6e62314 100644 --- a/goals/views.py +++ b/goals/views.py @@ -32,7 +32,7 @@ class Reports(LoginRequiredMixin, generic.ListView): slug = self.kwargs.get('slug', '') goals = get_object_or_404(Goals, slug = slug) - if not has_resource_permissions(request.user, goals): + if not has_subject_permissions(request.user, goals): return redirect(reverse_lazy('subjects:home')) return super(Reports, self).dispatch(request, *args, **kwargs) @@ -90,7 +90,7 @@ class AnsweredReport(LoginRequiredMixin, generic.ListView): slug = self.kwargs.get('slug', '') goals = get_object_or_404(Goals, slug = slug) - if not has_resource_permissions(request.user, goals): + if not has_subject_permissions(request.user, goals): return redirect(reverse_lazy('subjects:home')) return super(AnsweredReport, self).dispatch(request, *args, **kwargs) @@ -130,7 +130,7 @@ class UnansweredReport(LoginRequiredMixin, generic.ListView): slug = self.kwargs.get('slug', '') goals = get_object_or_404(Goals, slug = slug) - if not has_resource_permissions(request.user, goals): + if not has_subject_permissions(request.user, goals): return redirect(reverse_lazy('subjects:home')) return super(UnansweredReport, self).dispatch(request, *args, **kwargs) @@ -164,7 +164,7 @@ class HistoryReport(LoginRequiredMixin, generic.ListView): slug = self.kwargs.get('slug', '') goals = get_object_or_404(Goals, slug = slug) - if not has_resource_permissions(request.user, goals): + if not has_subject_permissions(request.user, goals): return redirect(reverse_lazy('subjects:home')) return super(HistoryReport, self).dispatch(request, *args, **kwargs) diff --git a/topics/locale/pt_BR/LC_MESSAGES/django.po b/topics/locale/pt_BR/LC_MESSAGES/django.po index da62023..47f70e1 100644 --- a/topics/locale/pt_BR/LC_MESSAGES/django.po +++ b/topics/locale/pt_BR/LC_MESSAGES/django.po @@ -118,7 +118,7 @@ msgstr "Editar" #: topics/templates/resources/list.html:33 msgid "Reports" -msgstr "" +msgstr "Relatórios" #: topics/templates/resources/list.html:35 topics/templates/topics/list.html:29 msgid "Remove" @@ -173,10 +173,8 @@ msgid "Webpage" msgstr "Página Web" #: topics/templates/topics/list.html:61 -#, fuzzy -#| msgid "Topics" msgid "Topic Goals" -msgstr "Tópicos" +msgstr "Metas do Tópico" #: topics/templates/topics/list.html:62 msgid "Questionary" @@ -197,8 +195,6 @@ msgid "Topic \"%s\" was updated on virtual enviroment \"%s\" successfully!" msgstr "Tópico \"%s\" foi atualizado no ambiente virtual \"%s\" com sucesso!" #: topics/views.py:193 -#, fuzzy -#| msgid "Could not remove this topic. It has on or more resources attached." msgid "Could not remove this topic. It has one or more resources attached." msgstr "" "Não é possível remover esse tópico. Ele possui um ou mais recursos " diff --git a/topics/templates/topics/list.html b/topics/templates/topics/list.html index b45326c..8cf0f41 100644 --- a/topics/templates/topics/list.html +++ b/topics/templates/topics/list.html @@ -57,8 +57,8 @@