Skip to content

Commit

Permalink
Add Ehrenmitglieder Group to root, (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaierhofer committed May 10, 2024
1 parent 3aa05d3 commit 66ef33e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions app/models/group/ehrenmitglieder.rb
@@ -0,0 +1,17 @@
# frozen_string_literal: true

# Copyright (c) 2012-2024, Schweizer Alpen-Club. This file is part of
# hitobito_sac_cas and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_sac_cas.

class Group::Ehrenmitglieder < ::Group

### ROLES
class Ehrenmitglied < ::Role
self.permissions = []
self.basic_permissions_only = true
end

roles Ehrenmitglied
end
3 changes: 2 additions & 1 deletion app/models/group/sac_cas.rb
Expand Up @@ -13,7 +13,8 @@ class Group::SacCas < ::Group
children Group::Geschaeftsstelle,
Group::Sektion,
Group::ExterneKontakte,
Group::Abonnenten
Group::Abonnenten,
Group::Ehrenmitglieder

mounted_attr :sac_newsletter_mailing_list_id, :integer
mounted_attr :course_admin_email, :string
Expand Down
7 changes: 7 additions & 0 deletions config/locales/wagon.de.yml
Expand Up @@ -265,6 +265,10 @@ de:
one: Schweizer Alpen-Club SAC
other: Schweizer Alpen-Club SAC

group/ehrenmitglieder:
one: Ehrenmitglieder
other: Ehrenmitglieder

group/externe_kontakte:
one: Externe Kontakte
other: Externe Kontakte
Expand Down Expand Up @@ -330,6 +334,9 @@ de:
other: Hütte

### ROLES
group/ehrenmitglieder/ehrenmitglied:
one: Ehrenmitglied
description: Ehrenmitglied
group/geschaeftsstelle/mitarbeiter:
one: Mitarbeiter*in (schreibend)
description: Mitarbeiter*in (schreibend)
Expand Down

0 comments on commit 66ef33e

Please sign in to comment.