diff --git a/app/models/group/root.rb b/app/models/group/root.rb index 4f9d85a..896d778 100644 --- a/app/models/group/root.rb +++ b/app/models/group/root.rb @@ -13,10 +13,6 @@ class Admin < ::Role self.permissions = [:layer_and_below_full, :admin] self.two_factor_authentication_enforced = true - def skip_alumnus_callback - true - end - def alumnus_manager @alumnus_manager ||= Jubla::Role::NullAlumnusManager.new end diff --git a/app/models/nejb_role.rb b/app/models/nejb_role.rb index 20334d5..19d9e10 100644 --- a/app/models/nejb_role.rb +++ b/app/models/nejb_role.rb @@ -7,10 +7,6 @@ class NejbRole < Role module AlumnusFreeRole - def skip_alumnus_callback - true - end - def alumnus_manager @alumnus_manager ||= Jubla::Role::NullAlumnusManager.new end diff --git a/spec/models/nejb_role_spec.rb b/spec/models/nejb_role_spec.rb index 93b2597..2567755 100644 --- a/spec/models/nejb_role_spec.rb +++ b/spec/models/nejb_role_spec.rb @@ -14,10 +14,6 @@ expect(subject).to be_a Jubla::Role end - it "disables the alumnus-callback" do - expect(subject.skip_alumnus_callback).to be_truthy - end - it "uses the NullAlumnusManager" do expect(subject.alumnus_manager).to be_a Jubla::Role::NullAlumnusManager end