Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anpassungen von Rollen: FG-Mitgleider :contact_data-Flag entfernen #64

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/group/professional_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# jubla_property_insurance :boolean default(FALSE), not null
#

# Copyright (c) 2012-2013, Jungwacht Blauring Schweiz. This file is part of
# Copyright (c) 2012-2023, 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.
Expand All @@ -47,7 +47,7 @@ class Leader < Jubla::Role::Leader
end

class Member < Jubla::Role::Member
self.permissions = [:contact_data, :group_read]
self.permissions = [:group_read]
end

end
6 changes: 3 additions & 3 deletions spec/abilities/person_ability_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8

# Copyright (c) 2012-2017, Jungwacht Blauring Schweiz. This file is part of
# Copyright (c) 2012-2023, 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.
Expand Down Expand Up @@ -255,7 +255,7 @@
end

describe :contact_data do
let(:role) { Fabricate(Group::StateBoard::Member.name.to_sym, group: groups(:be_board)) }
let(:role) { Fabricate(Group::StateBoard::Leader.name.to_sym, group: groups(:be_board)) }

it 'may view details of himself' do
is_expected.to be_able_to(:show_full, role.person.reload)
Expand Down Expand Up @@ -294,7 +294,7 @@
end

it 'may show any public role in same layer' do
other = Fabricate(Group::StateProfessionalGroup::Member.name.to_sym, group: groups(:be_security))
other = Fabricate(Group::StateProfessionalGroup::Leader.name.to_sym, group: groups(:be_security))
is_expected.to be_able_to(:show, other.person.reload)
end

Expand Down
Loading