Project

General

Profile

Actions

Bug #9687

closed

Provisioning Template Roles: view_template, edit_template doesn't render on 1.7.3 for non-admin

Added by Will Foster over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

There seems to be an error with non-admin users given the view_template and edit_template filters
inside a role for provisioning templates. This worked in prior versions (at least since 1.6.3).

The same view work as admin.

== UI ==
Hosts -> provisioning templates -> generic_atomic (is viewable)
** starts to load edit windows then:
ConfigTemplate Not Found
Please try to update your request
== debug logs ==
  ^[[1m^[[35mConfigTemplate Load (0.2ms)^[[0m  SELECT `config_templates`.* FROM `config_templates` WHERE `config_templates`.`name` = '105-generic_atomic' AND (1=0) ORDER BY config_templates.name LIMIT 1
  ^[[1m^[[36mConfigTemplate Load (0.2ms)^[[0m  ^[[1mSELECT `config_templates`.* FROM `config_templates` WHERE `config_templates`.`id` = 105 AND (1=0) ORDER BY config_templates.name LIMIT 1^[[0m
not found: Couldn't find ConfigTemplate with id=105-generic_atomic [WHERE (1=0)]
  Rendered common/404.html.erb (1.5ms)
Completed 404 Not Found in 47ms (Views: 2.9ms | ActiveRecord: 2.6ms)

The filter "view_template, edit_template" under the "Provisioning Template" category is added to a dedicated role.
This role is added to the user group which experiences the issue.


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #10634: API user can't edit templates without admin rightsResolved05/28/2015Actions
Related to Foreman - Bug #14000: Non-admin user receives permissions error on config_templates APIClosedDominic Cleal03/02/2016Actions
Has duplicate Foreman - Bug #13996: Hammer - Unable to create a read only user to dump templatesDuplicate03/01/2016Actions
Actions

Also available in: Atom PDF