Actions
Bug #4603
closedRBAC UI - plugin permissions not properly found
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Description
The filters_helper is incorrectly assuming that all resources are in the main app. The fix is below
@ -19,6 +19,14
@ def search_path(type)
def resource_path(type)
return '' if type.nil?
- send(type.pluralize.underscore + '_path')
+ #send(type.pluralize.underscore + '_path')
+
+ object_path = type.pluralize.underscore
+ if object_path.include?('/')
+ prefix, suffix = object_path.split('/', 2)
+ send(prefix).send(suffix + '_path')
+ else
+ send("#{object_path}_path")
+ end
Updated by Dominic Cleal about 11 years ago
- Is duplicate of Bug #4557: "Undefined Method" is raised in FiltersHelper#resource_path when resource is defined in a namespaced plugin added
Updated by Dominic Cleal about 11 years ago
- Status changed from New to Duplicate
Fixes should be submitted as pull requests. Dupe of #4557.
Actions