diff --git a/app/models/ability.rb b/app/models/ability.rb index 530d4e9..ba86a56 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -55,7 +55,7 @@ class Ability #----------------------------------------------------- # Rechteverwaltung fuer Fotos - can [:show,:index], Gallery +# can [:show,:index], Gallery if loggedin end if( user.has_role?("fetuser") || user.has_role?("fetadmin")) diff --git a/app/views/layouts/menu.html.erb b/app/views/layouts/menu.html.erb index 423f661..04b795c 100644 --- a/app/views/layouts/menu.html.erb +++ b/app/views/layouts/menu.html.erb @@ -15,7 +15,9 @@
  • <%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %>
  • <%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %>
  • +<% if can? :index, Gallery %>
  • <%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %>
  • +<% end %>
  • <%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %>
  • <%= link_to I18n.t("home.search"), search_home_index_path %>
  • <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %>