fixes #2716 error in discovery plugin menu and user without permissions

this pull request depend on  https://github.com/theforeman/foreman/pull/750