Skip to content

Commit

Permalink
Adjust ability for changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Jan 7, 2025
1 parent b2c7026 commit dde3c6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/abilities/sac_cas/various_ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ module SacCas::VariousAbility
class_side(:index).if_mitarbeiter_geschaeftsstelle
permission(:any).may(:show).if_mitarbeiter_geschaeftsstelle
end

on(ChangelogEntry) do
class_side(:index).if_mitarbeiter_geschaeftsstelle
end
end

def if_mitarbeiter_geschaeftsstelle
role_type?(Group::Geschaeftsstelle::MitarbeiterLesend, Group::Geschaeftsstelle::Mitarbeiter)
role_type?(Group::Geschaeftsstelle::MitarbeiterLesend, Group::Geschaeftsstelle::Mitarbeiter, Group::Geschaeftsstelle::Admin)
end
end

0 comments on commit dde3c6d

Please sign in to comment.