Aktivere Rechtemanagement für einige Controller

This commit is contained in:
Andreas Stephanides
2013-10-26 12:49:03 +02:00
parent 37ee03676e
commit ff7c1d71bb
16 changed files with 23 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
class AttachmentsController < ApplicationController
# GET /attachments
# GET /attachments.json
load_and_authorize_resource
def index
@attachments = Attachment.all

View File

@@ -1,6 +1,7 @@
class BeispieleController < ApplicationController
# GET /beispiele
# GET /beispiele.json
load_and_authorize_resource
def index
@beispiele = Beispiel.all

View File

@@ -1,6 +1,7 @@
class CalentriesController < ApplicationController
# GET /calentries
# GET /calentries.json
load_and_authorize_resource
def index
@calentries = Calentry.all

View File

@@ -1,4 +1,5 @@
class ConfigController < ApplicationController
load_and_authorize_resource
def index
end

View File

@@ -1,6 +1,7 @@
class FetzneditionsController < ApplicationController
# GET /fetzneditions
# GET /fetzneditions.json
load_and_authorize_resource
def index
@fetzneditions = Fetznedition.all

View File

@@ -1,6 +1,7 @@
class FragenController < ApplicationController
# GET /fragen
# GET /fragen.json
load_and_authorize_resource
def index
@fragen = Frage.all

View File

@@ -1,6 +1,7 @@
class GremienController < ApplicationController
# GET /gremien
# GET /gremien.json
load_and_authorize_resource
before_filter {@toolbar_elements=[]}
def verwalten
@gremien = Gremium.all

View File

@@ -1,6 +1,7 @@
class LecturersController < ApplicationController
# GET /lecturers
# GET /lecturers.json
load_and_authorize_resource
def index
@lecturers = Lecturer.all

View File

@@ -1,6 +1,7 @@
class LvasController < ApplicationController
# GET /lvas
before_filter {@toolbar_elements =[]}
load_and_authorize_resource
def index
@lvas = Lva.all
@toolbar_elements=[{:hicon=>'icon-plus-sign',:text =>I18n.t('lva.add'),:path => new_lva_path}]

View File

@@ -1,6 +1,7 @@
class MembershipsController < ApplicationController
# GET /memberships/new
# GET /memberships/new.json
load_and_authorize_resource
def new
@membership = Membership.new
@membership.fetprofile=Fetprofile.find(params[:fetprofile_id])

View File

@@ -1,6 +1,7 @@
class ModulsController < ApplicationController
# GET /moduls
# GET /moduls.json
load_and_authorize_resource
def index
@moduls = Modul.all
if @moduls

View File

@@ -1,5 +1,5 @@
class SemestersController < ApplicationController
load_and_authorize_resource
def index
@semesters = Semester.all
end

View File

@@ -1,7 +1,7 @@
class StudienController < ApplicationController
before_filter {@toolbar_elements =[]}
# before_filter :authorize, :only => :verwalten
load_and_authorize_resource
def index
@studien = Studium.all
@topbar_elements=[{:hicon=>'icon-list', :text=>I18n.t("studien.allestudien"),:path=>studien_path}]

View File

@@ -1,6 +1,8 @@
class ThemenController < ApplicationController
# GET /themen
# GET /themen.json
load_and_authorize_resource
def index
@themen = Thema.all

View File

@@ -1,6 +1,7 @@
class ThemengruppenController < ApplicationController
# GET /themengruppen
# GET /themengruppen.json
load_and_authorize_resource
def index
@themengruppen = Themengruppe.all
@toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()}]