Added authenticate filters.
This commit is contained in:
parent
51ed1f3bab
commit
bc761b4ef3
|
@ -1,4 +1,6 @@
|
|||
class DownloadsController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@downloads = Download.paginate :page => params[:page], :per_page => 30
|
||||
end
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
class PrivateUsersController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@private_users = PrivateUser.where(:platform_id => params[:platform_id]).paginate :page => params[:page]
|
||||
@platform = Platform.find(params[:platform_id])
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
class PrivatesController < ApplicationController
|
||||
require 'digest/sha2'
|
||||
|
||||
before_filter :authenticate_user!
|
||||
before_filter :find_platform
|
||||
|
||||
before_filter :authenticate
|
||||
|
||||
def show
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class RolesController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
before_filter :find_role, :only => [:show, :edit, :update, :destroy]
|
||||
before_filter :find_visibilities, :only => [:new, :edit]
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
class UsersController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
before_filter :find_user, :only => [:show, :edit, :update, :destroy]
|
||||
|
||||
def index
|
||||
|
|
Loading…
Reference in New Issue