hide gallery
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user