diff --git a/app/models/ability.rb b/app/models/ability.rb index a7e41c6e..ea97d560 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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