Description:
[web] disable sites_controller from normal users
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@247 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r119:cf9b6fbe5680 - - 1 file changed: 3 inserted, 0 deleted
@@ -1,13 +1,16 | |||
|
1 | 1 | class SitesController < ApplicationController |
|
2 | + | |
|
3 | + before_filter :admin_authorization | |
|
4 | + | |
|
2 | 5 | # GET /sites |
|
3 | 6 | # GET /sites.xml |
|
4 | 7 | def index |
|
5 | 8 | @sites = Site.find(:all) |
|
6 | 9 | |
|
7 | 10 | respond_to do |format| |
|
8 | 11 | format.html # index.html.erb |
|
9 | 12 | format.xml { render :xml => @sites } |
|
10 | 13 | end |
|
11 | 14 | end |
|
12 | 15 | |
|
13 | 16 | # GET /sites/1 |
You need to be logged in to leave comments.
Login now