diff --git a/app/controllers/calentries_controller.rb b/app/controllers/calentries_controller.rb index e4f4095..bb14973 100644 --- a/app/controllers/calentries_controller.rb +++ b/app/controllers/calentries_controller.rb @@ -1,7 +1,7 @@ class CalentriesController < ApplicationController # GET /calentries # GET /calentries.json - #load_and_authorize_resource + load_and_authorize_resource def index diff --git a/app/models/ability.rb b/app/models/ability.rb index 1cc4986..7d49731 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -35,8 +35,8 @@ class Ability #----------------------------------------------------- # Rechteverwaltung fuer Informationen can [:show, :index,:faqs], Themengruppe, :public=>true - can [:show], Thema, :isdraft=>false - can :show, Frage + can [:show], Thema, :isdraft=>false, :themengruppe=>{:public=>true} + can :show, Frage if loggedin end if( user.has_role?("fetuser") || user.has_role?("fetadmin")) diff --git a/app/views/home/_search_results.html.erb b/app/views/home/_search_results.html.erb index fe722ad..5ffbffc 100644 --- a/app/views/home/_search_results.html.erb +++ b/app/views/home/_search_results.html.erb @@ -7,7 +7,6 @@ <%= link_to res, :class=>:linkbox do %> <%= render :partial=>res.class.to_s.pluralize.downcase+"/nlink", :object=>res %> <% end %> - <% end %> <% end %> diff --git a/app/views/neuigkeiten/show.html.erb b/app/views/neuigkeiten/show.html.erb index cbf4e26..62afa66 100755 --- a/app/views/neuigkeiten/show.html.erb +++ b/app/views/neuigkeiten/show.html.erb @@ -50,7 +50,7 @@ end <%= render ce unless ce.nil? %> <% end %> -