don't authorize based on resource name in authorize_resource since this is already handled by enable_authorization
This commit is contained in:
@@ -33,7 +33,7 @@ module CanCan
|
||||
end
|
||||
|
||||
def authorize_resource
|
||||
@controller.authorize!(authorization_action, resource_instance || subject_name_with_parent)
|
||||
@controller.authorize!(authorization_action, resource_instance) if resource_instance
|
||||
end
|
||||
|
||||
def parent?
|
||||
|
||||
Reference in New Issue
Block a user