Skip to content

Commit

Permalink
Merge pull request #285 from Michael-Schaer/rolle_verantw_ehrenamt
Browse files Browse the repository at this point in the history
New Role for managing the volunteers
  • Loading branch information
carlobeltrame authored Sep 12, 2023
2 parents 407e43d + c4bbf30 commit 6dd53f6
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/group/bund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ class VerantwortungKrisenteam < ::Role
self.two_factor_authentication_enforced = true
end

class VerantwortungEhrenamt < ::Role
self.permissions = [:layer_and_below_read, :contact_data]
self.two_factor_authentication_enforced = true
end

class VerantwortungLagermeldung < ::Role
self.permissions = [:group_read, :contact_data]
end
Expand Down Expand Up @@ -319,6 +324,7 @@ class Webmaster < ::Role
VerantwortungPr,
VerantwortungPraeventionSexuellerAusbeutung,
VerantwortungKrisenteam,
VerantwortungEhrenamt,

InternationalCommissionerIcWagggs,
InternationalCommissionerIcWosm,
Expand Down
6 changes: 6 additions & 0 deletions app/models/group/kantonalverband.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ class VerantwortungKrisenteam < ::Role
self.two_factor_authentication_enforced = true
end

class VerantwortungEhrenamt < ::Role
self.permissions = [:layer_and_below_read, :contact_data]
self.two_factor_authentication_enforced = true
end

class VerantwortungLagermeldung < ::Role
self.permissions = [:layer_and_below_read, :contact_data]
self.two_factor_authentication_enforced = true
Expand Down Expand Up @@ -326,6 +331,7 @@ class VerantwortungNachhaltigkeit < ::Role
VerantwortungSuchtpraeventionsprogramm,
VerantwortungKantonsarchiv,
VerantwortungKrisenteam,
VerantwortungEhrenamt,
VerantwortungLagermeldung,
VerantwortungLagerplaetze,
VerantwortungMaterialverkaufsstelle,
Expand Down
6 changes: 6 additions & 0 deletions app/models/group/region.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ class VerantwortungKrisenteam < ::Role
self.two_factor_authentication_enforced = true
end

class VerantwortungEhrenamt < ::Role
self.permissions = [:layer_and_below_read, :contact_data]
self.two_factor_authentication_enforced = true
end

class VerantwortungLagermeldung < ::Role
self.permissions = [:layer_and_below_read, :contact_data]
self.two_factor_authentication_enforced = true
Expand Down Expand Up @@ -305,6 +310,7 @@ class Webmaster < ::Role
VerantwortungInternationales,
VerantwortungSuchtpraeventionsprogramm,
VerantwortungKrisenteam,
VerantwortungEhrenamt,
VerantwortungLagermeldung,
VerantwortungLagerplaetze,
VerantwortungMaterialverkaufsstelle,
Expand Down
12 changes: 12 additions & 0 deletions config/locales/models.pbs.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ de:
one: Verantwortliche*r Krisenteam
other: Verantwortliche Krisenteam
description:
group/bund/verantwortung_ehrenamt:
one: Verantwortliche*r Ehrenamtlichen-Management
other: Verantwortliche Ehrenamtlichen-Management
description:
group/bund/verantwortung_lagermeldung:
one: Verantwortliche*r Lagermeldung
other: Verantwortliche Lagermeldung
Expand Down Expand Up @@ -428,6 +432,10 @@ de:
one: Verantwortliche*r Krisenteam
other: Verantwortliche Krisenteam
description:
group/kantonalverband/verantwortung_ehrenamt:
one: Verantwortliche*r Ehrenamtlichen-Management
other: Verantwortliche Ehrenamtlichen-Management
description:
group/kantonalverband/verantwortung_lagermeldung:
one: Verantwortliche*r Lagermeldung
other: Verantwortliche Lagermeldung
Expand Down Expand Up @@ -606,6 +614,10 @@ de:
one: Verantwortliche*r Krisenteam
other: Verantwortliche Krisenteam
description:
group/region/verantwortung_ehrenamt:
one: Verantwortliche*r Ehrenamtlichen-Management
other: Verantwortliche Ehrenamtlichen-Management
description:
group/region/verantwortung_lagermeldung:
one: Verantwortliche*r Lagermeldung
other: Verantwortliche Lagermeldung
Expand Down
12 changes: 12 additions & 0 deletions config/locales/models.pbs.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ fr:
one: Responsable de l'équipe de crise
many: Responsable de l'équipe de crise
other: Responsable de l'équipe de crise
group/bund/verantwortung_ehrenamt:
one: Responsable gestion des bénévoles
many: Responsables gestion des bénévoles
other: Responsables gestion des bénévoles
group/bund/verantwortung_lagermeldung:
one: Responsable annonces de camp
many: Responsables annonce de camp
Expand Down Expand Up @@ -433,6 +437,10 @@ fr:
one: Responsable cellule de crise
many: Responsables cellule de crise
other: Responsables cellule de crise
group/kantonalverband/verantwortung_ehrenamt:
one: Responsable gestion des bénévoles
many: Responsables gestion des bénévoles
other: Responsables gestion des bénévoles
group/kantonalverband/verantwortung_lagermeldung:
one: Responsable annonce de camp
many: Responsables annonce de camp
Expand Down Expand Up @@ -609,6 +617,10 @@ fr:
one: Responsable cellule de crise
many: Responsables cellule de crise
other: Responsables cellule de crise
group/region/verantwortung_ehrenamt:
one: Responsable gestion des bénévoles
many: Responsables gestion des bénévoles
other: Responsables gestion des bénévoles
group/region/verantwortung_lagermeldung:
one: Responsable annonce de camp
many: Responsables annonce de camp
Expand Down
12 changes: 12 additions & 0 deletions config/locales/models.pbs.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ it:
one: Responsabile team di crisi
many: Responsabile team di crisi
other: Responsabile team di crisi
group/bund/verantwortung_ehrenamt:
one: Responsabile gestione dei volontari
many: Responsabili gestione dei volontari
other: Responsabili gestione dei volontari
group/bund/verantwortung_lagermeldung:
one: Responsabile annuncio campi
many: Responsabili annuncio campi
Expand Down Expand Up @@ -447,6 +451,10 @@ it:
one: Responsabile della cellula di crisi
many: Responsabili della cellula di crisi
other: Responsabili della cellula di crisi
group/kantonalverband/verantwortung_ehrenamt:
one: Responsabile gestione dei volontari
many: Responsabili gestione dei volontari
other: Responsabili gestione dei volontari
group/kantonalverband/verantwortung_lagermeldung:
one: Responsabile annuncio campi
many: Responsabili annuncio campi
Expand Down Expand Up @@ -623,6 +631,10 @@ it:
one: Responsabile della cellula di crisi
many: Responsabili della cellula di crisi
other: Responsabili della cellula di crisi
group/region/verantwortung_ehrenamt:
one: Responsabile gestione dei volontari
many: Responsabili gestione dei volontari
other: Responsabili gestione dei volontari
group/region/verantwortung_lagermeldung:
one: Responsabile annuncio campi
many: Responsabili annuncio campi
Expand Down

0 comments on commit 6dd53f6

Please sign in to comment.