Skip to content

Commit

Permalink
Fix ability for secretary
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFelipe committed Dec 12, 2023
1 parent 8f79bab commit b933fbd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,15 @@ def initialize(user)
can :manage, (Ability::ALL_MODELS - [
User, Role, CustomVariable, Query, Version,
Notification, ReportConfiguration,
Admissions::FormTemplate, Admissions::FormField,
Admissions::AdmissionApplication, Admissions::FilledForm,
Admissions::FilledFormFieldScholarity,
Admissions::FilledFormField, Admissions::LetterRequest,
Admissions::FormTemplate, Admissions::FormField
])
cannot :destroy, [
Admissions::AdmissionApplication, Admissions::FilledForm,
Admissions::FilledFormField, Admissions::FilledFormFieldScholarity,
Admissions::LetterRequest
]
can :read, [
Admissions::FormTemplate, Admissions::FormField,
Admissions::AdmissionApplication, Admissions::FilledForm,
Admissions::FilledFormFieldScholarity,
Admissions::FilledFormField, Admissions::LetterRequest,
]
cannot :update_only_photo, Student
can :invite, User
Expand Down

0 comments on commit b933fbd

Please sign in to comment.