mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Introduce organization admins
This commit is contained in:
parent
f37d3095e1
commit
b72e64b238
6 changed files with 96 additions and 41 deletions
|
|
@ -2,6 +2,10 @@ namespace :roles do
|
|||
desc 'Adds back deleted roles to all conferences'
|
||||
task add: :environment do
|
||||
|
||||
Organization.all.each do |org|
|
||||
Role.where(name: 'organization_admin', resource: org).first_or_create(description: "For the administrators of an organization (who shall have full access to the organization and it's conferences)")
|
||||
end
|
||||
|
||||
Conference.all.each do |c|
|
||||
Role.where(name: 'organizer', resource: c).first_or_create(description: 'For the organizers of the conference (who shall have full access)')
|
||||
Role.where(name: 'cfp', resource: c).first_or_create(description: 'For the members of the CfP team')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue