From 7cdf905bef7854fdb87610c3c940a255c7190edb Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Tue, 5 Nov 2024 16:20:32 +0100 Subject: [PATCH] Use the correct and intended Roles --- app/models/group/nejb_simple_group.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/group/nejb_simple_group.rb b/app/models/group/nejb_simple_group.rb index 9aad5d2..e87efdb 100644 --- a/app/models/group/nejb_simple_group.rb +++ b/app/models/group/nejb_simple_group.rb @@ -41,24 +41,24 @@ # Einfache Gruppe für Alumni, aber ohne Alumni-Magic, kann überall im NEJB-Baum angehängt werden. class Group::NejbSimpleGroup < NejbGroup - class Leader < Role + class Leader < NejbRole self.permissions = [:group_full] end - class Member < Role + class Member < NejbRole self.permissions = [:group_read] end - class GroupAdmin < Role + class GroupAdmin < NejbRole end - class External < Role + class External < NejbRole self.permissions = [] self.visible_from_above = false self.kind = :external end - class DispatchAddress < Role + class DispatchAddress < NejbRole end roles Leader, Member, GroupAdmin, External, DispatchAddress