Skip to content

Commit

Permalink
#505: fix form bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFelipe committed Dec 6, 2024
1 parent 0517434 commit 66c2c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def initialize_professors(user, roles)
can :update, PaperStudent, paper: { owner: user.professor }
can :destroy, PaperProfessor, paper: { owner: user.professor }
can :destroy, PaperStudent, paper: { owner: user.professor }
can :destroy, PaperProfessor, paper: { owner: nil }
can :destroy, PaperStudent, paper: { owner: nil }
can :destroy, Paper, owner: user.professor
end
end
Expand Down
1 change: 0 additions & 1 deletion config/locales/paper.pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ pt-BR:
paper:
reference: "(conforme informado para o Sucupira)"
doi_issn_event: "(conforme informado na Sucupira)"
other_authors: "(caso não tenha, informar NA)"
order: "Considerando o conjunto que você selecionou (1 é o mais relevante)"

errors:
Expand Down

0 comments on commit 66c2c80

Please sign in to comment.