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 a200648 commit d9d0655
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/models/group/dachverband_gremium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ class Leitung < ::Role
self.permissions = [:layer_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_read]
self.permissions = [:layer_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_read]
self.permissions = [:layer_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_read, :finance]
self.permissions = [:layer_read, :group_and_below_full, :finance]
end

roles Leitung,
Expand Down

0 comments on commit d9d0655

Please sign in to comment.