Commit d17227ec316153b2acf460a26e6e7cea6b84f82b
1 parent
9f97deae
Exists in
master
and in
22 other branches
ActionItem40: prettied up the migration
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1891 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
14 additions
and
3 deletions
Show diff stats
db/migrate/013_access_control_migration.rb
... | ... | @@ -20,7 +20,14 @@ class AccessControlMigration < ActiveRecord::Migration |
20 | 20 | Role.with_scope(:create => { :system => true }) do |
21 | 21 | |
22 | 22 | # Environment administrator! |
23 | - Role.create!(:key => 'environment_administrator', :name => N_('Environment Administrator'), :permissions => ['view_environment_admin_panel','edit_environment_features', 'edit_environment_design', 'manage_environment_categories', 'manage_environment_roles', 'manage_environment_validators']) | |
23 | + Role.create!(:key => 'environment_administrator', :name => N_('Environment Administrator'), :permissions => [ | |
24 | + 'view_environment_admin_panel', | |
25 | + 'edit_environment_features', | |
26 | + 'edit_environment_design', | |
27 | + 'manage_environment_categories', | |
28 | + 'manage_environment_roles', | |
29 | + 'manage_environment_validators' | |
30 | + ]) | |
24 | 31 | |
25 | 32 | Role.create!(:key => 'profile_admin', :name => N_('Profile Administrator'), :permissions => [ |
26 | 33 | 'edit_profile', |
... | ... | @@ -33,12 +40,16 @@ class AccessControlMigration < ActiveRecord::Migration |
33 | 40 | |
34 | 41 | # members for enterprises, communities etc |
35 | 42 | Role.create!(:key => "profile_member", :name => N_('Member'), :permissions => [ |
36 | - 'edit_profile', 'post_content', 'manage_products' | |
43 | + 'edit_profile', | |
44 | + 'post_content', | |
45 | + 'manage_products' | |
37 | 46 | ]) |
38 | 47 | |
39 | 48 | # moderators for enterprises, communities etc |
40 | 49 | Role.create!(:key => 'profile_moderator', :name => N_('Moderator'), :permissions => [ |
41 | - 'manage_memberships', 'edit_profile_design', 'manage_products' | |
50 | + 'manage_memberships', | |
51 | + 'edit_profile_design', | |
52 | + 'manage_products' | |
42 | 53 | ]) |
43 | 54 | |
44 | 55 | end | ... | ... |