summaryrefslogtreecommitdiff
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-16 11:39:35 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-16 11:39:35 +0100
commit962e07e58451f5d21cab9804191139be0f20189b (patch)
treed004c2b6f4f1dfd9dcc5db465aa9f9e9ac98efd0 /app/controllers/users_controller.rb
parent4194d7f689c3f70c9247e8006694cfcf667ebaf0 (diff)
Downgraded CanCan to version 1.6.7
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 454c26b..7af8e68 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -10,7 +10,7 @@ class UsersController < ApplicationController
end
def show
- @phone_books = PhoneBook.accessible_by( Ability.new( @user ) ).all
+ @phone_books = PhoneBook.accessible_by( Ability.new( @user ), :read )
end
def new