diff --git a/app/models/ability/admin.rb b/app/models/ability/admin.rb index f9b4d8dbcf9ed7ab67f414693b7009c7440e5d97..782c2de7af0aafc5f0de7594601d6c05a1901304 100644 --- a/app/models/ability/admin.rb +++ b/app/models/ability/admin.rb @@ -27,6 +27,9 @@ class Ability::Admin < Ability end def admin_education + # Necessaire pour l'affichage des tableaux de bord + # https://github.com/osunyorg/admin/pull/2491 + can :manage, University::Person::Localization::Teacher can :manage, Education::AcademicYear, university_id: @user.university_id can :manage, Education::Cohort, university_id: @user.university_id can :manage, Education::Diploma, university_id: @user.university_id @@ -36,6 +39,9 @@ class Ability::Admin < Ability end def admin_research + # Necessaire pour l'affichage des tableaux de bord + # https://github.com/osunyorg/admin/pull/2491 + can :manage, University::Person::Localization::Researcher can :manage, Research::Hal::Author can :manage, Research::Publication can :manage, Research::Journal, university_id: @user.university_id @@ -48,6 +54,9 @@ class Ability::Admin < Ability end def admin_communication + # Necessaire pour l'affichage des tableaux de bord + # https://github.com/osunyorg/admin/pull/2491 + can :manage, University::Person::Localization::Author can :manage, Communication::Block, university_id: @user.university_id can :create, Communication::Block can :manage, Communication::Website, university_id: @user.university_id @@ -77,6 +86,9 @@ class Ability::Admin < Ability end def admin_administration + # Necessaire pour l'affichage des tableaux de bord + # https://github.com/osunyorg/admin/pull/2491 + can :manage, University::Person::Alumnus can :manage, Administration::Location can :read, Administration::Qualiopi can :read, Administration::Qualiopi::Criterion