Skip to content

Commit

Permalink
Only permission-less roles are allowed for self-registration
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn committed Dec 18, 2024
1 parent 3230703 commit e2fb8f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/features/self_registration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
class Group::SelfRegistrationGroup < Group # rubocop:disable Lint/ConstantDefinitionInBlock
self.layer = true

class ReadOnly < ::Role
self.permissions = [:group_read]
class Guest < ::Role
self.permissions = []
end

roles ReadOnly
roles Guest
end

let(:group) do
Expand Down

0 comments on commit e2fb8f6

Please sign in to comment.