Skip to content

Commit

Permalink
allow all members of a gremium to create events
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickuhlmann committed Dec 28, 2023
1 parent d9d0655 commit d8d2e59
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/models/group/mitgliederorganisation_gremium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ class Leitung < ::Role
self.permissions = [:layer_and_below_read, :group_and_below_full, :contact_data]
end

# get the group_and_below_full permission as they should also be able to create events
class Mitglied < ::Role
self.permissions = [:layer_and_below_read]
self.permissions = [:layer_and_below_read, :group_and_below_full]
end

# get the group_and_below_full permission as they should also be able to create events
class AktiverKursleiter < ::Role
self.permissions = [:layer_and_below_read]
self.permissions = [:layer_and_below_read, :group_and_below_full]
end

# get the group_and_below_full permission as they should also be able to create events
class Ausbildungsmitglied < ::Role
self.permissions = [:layer_and_below_read]
self.permissions = [:layer_and_below_read, :group_and_below_full]
end

# get the group_and_below_full permission as they should also be able to create events
class Kassier < ::Role
self.permissions = [:layer_and_below_read, :finance]
self.permissions = [:layer_and_below_read, :group_and_below_full, :finance]
end

roles Leitung,
Expand Down

0 comments on commit d8d2e59

Please sign in to comment.