-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from hitobito/feature/jubla-129-nejb-structure
NEJB Structure
- Loading branch information
Showing
17 changed files
with
419 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::KantonEhemaligenverein < ::Group | ||
### ROLES | ||
|
||
class Leader < ::Role | ||
self.permissions = [:group_and_below_full, :contact_data] | ||
end | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:group_and_below_full] | ||
end | ||
|
||
class Treasurer < ::Role | ||
self.permissions = [:group_and_below_read] | ||
end | ||
|
||
class NejbMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class NejbJoiner < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class External < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class DispatchAddress < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
roles Leader, GroupAdmin, Treasurer, NejbMember, NejbJoiner, External, DispatchAddress | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::Nejb < ::Group | ||
self.layer = true | ||
children Group::NejbBundesleitung, | ||
Group::NetzwerkEhemaligeJungwachtBlauring, | ||
Group::NejbKanton | ||
|
||
### ROLES | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:group_full] | ||
end | ||
|
||
class DispatchAddress < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class ITSupport < ::Role | ||
self.permissions = [:admin, :impersonation] | ||
end | ||
|
||
roles GroupAdmin, DispatchAddress, ITSupport | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::NejbBundesleitung < ::Group | ||
class GroupAdmin < ::Role | ||
self.permissions = [:admin, :layer_and_below_full, :contact_data] | ||
end | ||
|
||
roles GroupAdmin | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::NejbKanton < ::Group | ||
children Group::KantonEhemaligenverein, Group::NejbRegion | ||
self.layer = true | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:admin, :layer_and_below_full, :contact_data] | ||
end | ||
|
||
roles GroupAdmin | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::NejbRegion < ::Group | ||
children Group::RegionEhemaligenverein, Group::NejbSchar | ||
self.layer = true | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:admin, :layer_and_below_full, :contact_data] | ||
end | ||
|
||
roles GroupAdmin | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::NejbSchar < ::Group | ||
self.layer = true | ||
|
||
### ROLES | ||
|
||
class Leader < ::Role | ||
self.permissions = [:group_and_below_full, :contact_data] | ||
end | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:group_and_below_full] | ||
end | ||
|
||
class Treasurer < ::Role | ||
self.permissions = [:group_and_below_read] | ||
end | ||
|
||
class NejbMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class NejbJoiner < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class External < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class DispatchAddress < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
roles Leader, GroupAdmin, Treasurer, NejbMember, NejbJoiner, External, DispatchAddress | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024-2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::NetzwerkEhemaligeJungwachtBlauring < ::Group | ||
### ROLES | ||
|
||
class Leader < ::Role | ||
self.permissions = [:group_and_below_full, :contact_data] | ||
end | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:group_and_below_full] | ||
end | ||
|
||
class Treasurer < ::Role | ||
self.permissions = [:group_and_below_read] | ||
end | ||
|
||
class ActiveMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class PassiveMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class CollectiveMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class NejbJoiner < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class External < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class DispatchAddress < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
roles Leader, GroupAdmin, Treasurer, ActiveMember, PassiveMember, CollectiveMember, NejbJoiner, External, DispatchAddress | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright (c) 2024, Jungwacht Blauring Schweiz. This file is part of | ||
# hitobito_jubla 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_jubla. | ||
|
||
class Group::RegionEhemaligenverein < ::Group | ||
### ROLES | ||
|
||
class Leader < ::Role | ||
self.permissions = [:group_and_below_full, :contact_data] | ||
end | ||
|
||
class GroupAdmin < ::Role | ||
self.permissions = [:group_and_below_full] | ||
end | ||
|
||
class Treasurer < ::Role | ||
self.permissions = [:group_and_below_read] | ||
end | ||
|
||
class NejbMember < ::Role | ||
self.permissions = [:group_read] | ||
end | ||
|
||
class NejbJoiner < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class External < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
class DispatchAddress < ::Role | ||
self.permissions = [] | ||
end | ||
|
||
roles Leader, GroupAdmin, Treasurer, NejbMember, NejbJoiner, External, DispatchAddress | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,5 @@ def alumnus_manager | |
|
||
roles Admin | ||
|
||
children Group::Federation | ||
children Group::Federation, Group::Nejb | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.