Project

General

Profile

ERF42-5531 » History » Version 1

Dominic Cleal, 06/16/2014 04:56 PM

1 1 Dominic Cleal
h1. ERF42-5531
2
3
h2. unknown permission for ...
4
5
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.
6
7
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
8
9
h3. Developers
10
11
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