diff --git a/app/models/ability.rb b/app/models/ability.rb index 74c3bd5..e42d236 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -89,7 +89,7 @@ class Ability if loggedin end if( user.has_role?("fetuser") || user.has_role?("fetadmin")) - + can :showversions, Neuigkeit can :showintern, Neuigkeit can :showintern, Rubrik can :seeintern, User diff --git a/app/views/themen/_small.html.erb b/app/views/themen/_small.html.erb index c30e6cb..cef24fe 100644 --- a/app/views/themen/_small.html.erb +++ b/app/views/themen/_small.html.erb @@ -1,6 +1,6 @@ <% if can? :show, small %> -

<%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %> <%= link_to fa_icon("paint-brush"), sanitize_thema_path(small) if can? :edit, small %>

+

<%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %>

<% if small.is_outdated? %>
<%= I18n.t("thema.outdated") %> <%= link_to"Als aktuell markieren",is_updated_thema_path(small), :class=>:btn if can? :is_updated, small%>