Commit f55f3ef9b63ee40b1f26025370bab66ab662c011
1 parent
6ab04f0c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Add new permission to manage email templates
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
... | ... | @@ -79,6 +79,7 @@ class Profile < ActiveRecord::Base |
79 | 79 | 'invite_members' => N_('Invite members'), |
80 | 80 | 'send_mail_to_members' => N_('Send e-Mail to members'), |
81 | 81 | 'manage_custom_roles' => N_('Manage custom roles'), |
82 | + 'manage_email_templates' => N_('Manage Email Templates'), | |
82 | 83 | } |
83 | 84 | |
84 | 85 | 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 | ... | ... |