Adding ability authorizing in cancan
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class DoorLogsController < ApplicationController
|
||||
authorize_resource
|
||||
before_filter :authenticate_user!
|
||||
|
||||
# GET /door_logs
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class UsersController < ApplicationController
|
||||
authorize_resource
|
||||
before_filter :authenticate_user!
|
||||
|
||||
# GET /users
|
||||
|
||||
Reference in New Issue
Block a user