diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb
index 6cc9f322..88bd6c88 100644
--- a/app/views/dmsf/show.html.erb
+++ b/app/views/dmsf/show.html.erb
@@ -110,7 +110,7 @@
<%= hidden_field_tag('action') %>
<%= submit_tag(l(:button_download), :title => l(:title_download_checked), :name => 'download_entries') if @file_view_allowed %>
- <%= submit_tag(l(:field_mail), :title => l(:title_send_checked_by_email), :name => 'email_entries') if @file_view_allowed %>
+ <%= submit_tag(l(:field_mail), :title => l(:title_send_checked_by_email), :name => 'email_entries') if (@file_view_allowed && User.current.allowed_to?(:email_documents, @project)) %>
<% if @file_delete_allowed%>
<%= submit_tag(l(:button_delete), :title => l(:title_delete_checked), :name => 'delete_entries') if @file_delete_allowed %>
<% end %>
@@ -291,4 +291,4 @@
<% end %>
-<%= render(:partial => 'dmsf_upload/multi_upload') if (@file_manipulation_allowed && !@locked_for_user) %>
\ No newline at end of file
+<%= render(:partial => 'dmsf_upload/multi_upload') if (@file_manipulation_allowed && !@locked_for_user) %>
diff --git a/init.rb b/init.rb
index b73da6ec..cf8cd8d6 100644
--- a/init.rb
+++ b/init.rb
@@ -70,6 +70,7 @@ Redmine::Plugin.register :redmine_dmsf do
:dmsf_files_copy => [:new, :create, :move],
:dmsf_workflows => [:log]},
:read => true
+ permission :email_documents, {}
permission :folder_manipulation,
{:dmsf => [:new, :create, :delete, :edit, :save, :edit_root, :save_root, :lock, :unlock, :notify_activate, :notify_deactivate, :restore]}
permission :file_manipulation,
@@ -178,4 +179,4 @@ end
Redmine::Search.map do |search|
search.register :dmsf_files
search.register :dmsf_folders
-end
\ No newline at end of file
+end