projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved note description to the sidebar header
[rails.git]
/
app
/
controllers
/
user_roles_controller.rb
diff --git
a/app/controllers/user_roles_controller.rb
b/app/controllers/user_roles_controller.rb
index 7dad891e2197a36b28f2fd69ba37b708ceaa89ee..8f623a04dff3257d4ba199a1fdc6adb0f73568e7 100644
(file)
--- a/
app/controllers/user_roles_controller.rb
+++ b/
app/controllers/user_roles_controller.rb
@@
-10,9
+10,7
@@
class UserRolesController < ApplicationController
before_filter :in_role, :only => [:revoke]
def grant
before_filter :in_role, :only => [:revoke]
def grant
- @this_user.roles.create({
- :role => @role, :granter_id => @user.id
- }, :without_protection => true)
+ @this_user.roles.create(:role => @role, :granter_id => @user.id)
redirect_to :controller => 'user', :action => 'view', :display_name => @this_user.display_name
end
redirect_to :controller => 'user', :action => 'view', :display_name => @this_user.display_name
end