Actions
Bug #6482
closedEngine Models are Duplicated in Permssions Resources
Status:
Rejected
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Description
For Katello, the Permissions model ends up doubling the list of models, one with single quotes, one without. This ends up showing in the filter list twice -- with the humanized name, and without.
e.g.:
1.9.3-p448 :015 > Permission.uniq.order(:resource_type).pluck(:resource_type).compact SQL (2.1ms) SELECT DISTINCT "permissions"."resource_type" FROM "permissions" ORDER BY resource_type => ["Architecture", "Audit", "AuthSourceLdap", "Bookmark", "CommonParameter", "ComputeProfile", "ComputeResource", "ConfigTemplate", "Domain", "Environment", "FactValue", "Filter", "Host", "HostClass", "Hostgroup", "Image", "'Katello::ActivationKey'", "Katello::ActivationKey", "'Katello::ContentView'", "Katello::ContentView", "'Katello::GpgKey'", "Katello::GpgKey", "'Katello::HostCollection'", "Katello::HostCollection", "'Katello::KTEnvironment'", "Katello::KTEnvironment", "'Katello::Product'", "Katello::Product", "'Katello::SyncPlan'", "Katello::SyncPlan", "'Katello::System'", "Katello::System", "Location", "LookupKey", "Medium", "Model", "Operatingsystem", "Organization", "'Organization'", "Parameter", "Ptable", "Puppetclass", "Realm", "Report", "Role", "SmartProxy", "'SmartProxy'", "Subnet", "Trend", "User", "Usergroup"]
Katello is only sending one set of permissions so I'm not sure how this is getting doubled.
Actions