<% toolbar_elements.each do |t| %>
<% unless t[:method]==:versions %>
<% text='
'.html_safe+t[:text] %>
diff --git a/app/views/themen/_small.html.erb b/app/views/themen/_small.html.erb
index dfa0fc3..2e4b269 100644
--- a/app/views/themen/_small.html.erb
+++ b/app/views/themen/_small.html.erb
@@ -1,3 +1,4 @@
+<% if can? :show, small %>
<%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %>
@@ -30,3 +31,6 @@
@small_elements << {:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>small} if can? :edit, small
@small_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('thema.remove'), :path=>small, :method=>:delete,:confirm=>I18n.t('thema.sure')} if can? :delete, small %>
<% render :partial=>'layouts/pretty_toolbar', :object=>@small_elements unless @small_elements.empty? %>
+<% else %>
+Error
+<% end %>
diff --git a/app/views/themen/_thema.html.erb b/app/views/themen/_thema.html.erb
index ede7bb2..7d24eff 100644
--- a/app/views/themen/_thema.html.erb
+++ b/app/views/themen/_thema.html.erb
@@ -1,2 +1,2 @@
- <%= thema.title%>
+ <%= thema.title if can? :show , thema %>