Actions
ERF42-5531¶
unknown permission for ...¶
In Foreman 1.5, a new permissions system was introduced which added the requirement for developers (both for Foreman and plugins) to link a given URL/route to the permission that it needed.
If the URL with the problem is added by a plugin, the developer(s) of the plugin need to update it, otherwise please file a bug against Foreman: http://projects.theforeman.org/projects/foreman/issues/new
Developers¶
Override the private action_permission method on your controller and map the controller action name back to the prefix of the permission that's required. e.g. https://github.com/theforeman/foreman/blob/1.5-stable/app/controllers/hosts_controller.rb#L540-L568
Updated by Dominic Cleal over 10 years ago · 1 revisions