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 991cb48 commit bb7d466
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app/models/group/dachverband_gremium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class Leitung < ::Role
self.permissions = [:layer_read, :group_and_below_full, :contact_data]
end

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

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

# allow creation of events through group_and_below_full
# get the group_and_below_full permission as they should also be able to create events
class Kassier < ::Role
self.permissions = [:layer_read, :group_and_below_full, :finance]
end
Expand Down
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

# allow creation of events through group_and_below_full
class Mitglied < ::Role
self.permissions = [:layer_and_below_read, :group_and_below_full]
self.permissions = [:layer_and_below_read]
end

# allow creation of events through group_and_below_full
class AktiverKursleiter < ::Role
self.permissions = [:layer_and_below_read, :group_and_below_full]
self.permissions = [:layer_and_below_read]
end

# allow creation of events through group_and_below_full
class Ausbildungsmitglied < ::Role
self.permissions = [:layer_and_below_read, :group_and_below_full]
self.permissions = [:layer_and_below_read]
end

# allow creation of events through group_and_below_full
class Kassier < ::Role
self.permissions = [:layer_and_below_read, :group_and_below_full, :finance]
self.permissions = [:layer_and_below_read, :finance]
end

roles Leitung,
Expand Down

0 comments on commit bb7d466

Please sign in to comment.