Skip to content

Commit

Permalink
only allow members of dachverband gremium to create events
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickuhlmann committed Dec 29, 2023
1 parent bc88f45 commit dc3a063
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/models/group/mitgliederorganisation_gremium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,20 @@ 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, :group_and_below_full]
self.permissions = [:layer_and_below_read]
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, :group_and_below_full]
self.permissions = [:layer_and_below_read]
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, :group_and_below_full]
self.permissions = [:layer_and_below_read]
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, :group_and_below_full, :finance]
self.permissions = [:layer_and_below_read]
end

roles Leitung,
Expand Down

0 comments on commit dc3a063

Please sign in to comment.