parent
c95271682d
commit
336e2c3c48
@ -1,6 +0,0 @@
|
||||
# encoding: utf-8
|
||||
|
||||
# TODO: rename class to specific name and change all references
|
||||
class Group::HelpCircle < ::Group
|
||||
self.layer = true
|
||||
end
|
@ -0,0 +1,24 @@
|
||||
# encoding: utf-8
|
||||
|
||||
class Group::TopLayer < ::Group
|
||||
|
||||
self.layer = true
|
||||
|
||||
children Group::Circle
|
||||
|
||||
### ROLES
|
||||
class Leader < ::Role
|
||||
self.permissions = [:layer_and_below_full, :admin]
|
||||
end
|
||||
|
||||
class Member < ::Role
|
||||
self.permissions = [:group_read]
|
||||
end
|
||||
|
||||
class Guest < ::Role
|
||||
self.permissions = []
|
||||
end
|
||||
|
||||
roles Leader, Member, Guest
|
||||
|
||||
end
|
@ -1,3 +1,3 @@
|
||||
# encoding: utf-8
|
||||
|
||||
Group::Circle.seed_once(:parent_id, name: 'Koordinationskreis')
|
||||
Group::TopLayer.seed_once(:parent_id, name: 'Local-IT')
|
||||
|
Loading…
Reference in new issue