Skip to content

Commit

Permalink
Use the correct and intended Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn committed Nov 5, 2024
1 parent 531c1f2 commit 7cdf905
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/group/nejb_simple_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cdf905

Please sign in to comment.