Actions
Bug #10634
closedAPI user can't edit templates without admin rights
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Hello
I have a service-account user (jenkins) assigned an 'Edit Templates' role.
The role has the following permissions. view_templates, create_templates, edit_templates, deploy_templates, lock_templates.
Until a recent upgrade to foreman 1.8 (from 1.6), the user (via a jenkins job and some ruby) was successfully using the API to upload templates from a git repository.
This now no longer works unless the user is also made an 'admin'. Without this setting, the API returns a 404 error.
Unlocking template: 49{:config_template=>{:locked=>false}} rake aborted! RestClient::ResourceNotFound: 404 Resource Not Found
The problem still exists in 1.8.1 and was not fixed by http://projects.theforeman.org/issues/9687
Many Thanks,
Alex
Actions