Commit f02fc0a6143b60ef9b70ea417a807535ae4b5390

Authored by MoisesMachado
1 parent 159adfc8

ActionItem93: added roles membro and dono for testing


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1064 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
script/anhetegua
... ... @@ -63,7 +63,7 @@ asl = new_validator(rs, 'Associacao Software Livre.Org', 'asl')
63 63 forum_rs = new_validator(rs, 'Forum Gaucho de Economia Solidaria', 'ecosolrs')
64 64  
65 65 # Role for own things
66   -owner_role = Role.create!(:name => 'owner', :permissions => ['edit_profile', 'destroy_profile', 'manage_memberships', 'post_content', 'edit_profile_design'])
  66 +owner_role = Role.create!(:name => 'dono', :permissions => ['edit_profile', 'destroy_profile', 'manage_memberships', 'post_content', 'edit_profile_design', 'manage_products'])
67 67  
68 68 # root user of the system, admin_role for him, the assignment of the role for him and the ownership of the system homepage
69 69 root = User.create!(:login => 'root', :email => 'root@noosfero.org', :password => 'root', :password_confirmation => 'root').person
... ... @@ -78,6 +78,9 @@ empa = Enterprise.create!(:name => 'Empreendimento A', :identifier => 'empreendi
78 78 empa.affiliate(ze, owner_role)
79 79 colivre.affiliate(ze, owner_role)
80 80  
  81 +member_role = Role.create!(:name => 'membro', :permissions => ['edit_profile', 'post_content', 'manage_products'] )
  82 +moderator_role = Role.create!(:name => 'moderador', :permissions => ['manage_memberships', 'edit_profile_design', 'manage_products'] )
  83 +
81 84  
82 85 # product categories
83 86 produtos = ProductCategory.create!(:name => 'Produtos', :environment => Environment.default, :display_color => 4)
... ...