hide gallery

This commit is contained in:
Andreas Stephanides
2014-10-27 14:49:28 +01:00
parent 1e34dd4533
commit 27d5d2cda2
2 changed files with 3 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ class Ability
#----------------------------------------------------- #-----------------------------------------------------
# Rechteverwaltung fuer Fotos # Rechteverwaltung fuer Fotos
can [:show,:index], Gallery # can [:show,:index], Gallery
if loggedin if loggedin
end end
if( user.has_role?("fetuser") || user.has_role?("fetadmin")) if( user.has_role?("fetuser") || user.has_role?("fetadmin"))

View File

@@ -15,7 +15,9 @@
<li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li> <li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li>
<li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li> <li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li>
<% if can? :index, Gallery %>
<li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li> <li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li>
<% end %>
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li> <li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
<li> <%= link_to I18n.t("home.search"), search_home_index_path %></li> <li> <%= link_to I18n.t("home.search"), search_home_index_path %></li>
<li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li> <li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li>