Commit 122ef265aa38e9cd70bef031f353adc1f6cbbd4d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'email_template' into production
Showing
3 changed files
with
3 additions
and
2 deletions
Show diff stats
app/controllers/my_profile/email_templates_controller.rb
app/models/profile.rb
| ... | ... | @@ -107,6 +107,7 @@ class Profile < ActiveRecord::Base |
| 107 | 107 | 'invite_members' => N_('Invite members'), |
| 108 | 108 | 'send_mail_to_members' => N_('Send e-Mail to members'), |
| 109 | 109 | 'manage_custom_roles' => N_('Manage custom roles'), |
| 110 | + 'manage_email_templates' => N_('Manage Email Templates'), | |
| 110 | 111 | } |
| 111 | 112 | |
| 112 | 113 | acts_as_accessible | ... | ... |
test/functional/email_templates_controller_test.rb
| ... | ... | @@ -5,7 +5,7 @@ class EmailTemplatesControllerTest < ActionController::TestCase |
| 5 | 5 | setup do |
| 6 | 6 | @profile = fast_create(Community) |
| 7 | 7 | @email_template = EmailTemplate.create!(:name => 'template', :owner => @profile) |
| 8 | - @person = create_user_with_permission('templatemanager', 'send_mail_to_members', @profile) | |
| 8 | + @person = create_user_with_permission('templatemanager', 'manage_email_templates', @profile) | |
| 9 | 9 | login_as(@person.user.login) |
| 10 | 10 | end |
| 11 | 11 | ... | ... |