Bug 1908150

Summary: [Sat6] Non-root user cannot see "Job Template" dropdown options in Job Invocation page unless "Refresh" button is click
Product: Red Hat Satellite Reporter: jalviso <jalviso>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: aruzicka, hyu, lstejska
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-07 11:15:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Hao Chang Yu 2020-12-16 00:49:53 UTC
This is the offending method which will always return the configured job category even if it is not authorized to view the job templates.

https://github.com/theforeman/foreman_remote_execution/blob/master/app/models/job_invocation_composer.rb#L584

Comment 3 Adam Ruzicka 2021-09-07 11:15:29 UTC
This is a duplicate of BZ #1993679 or at least the fix for it seems to fix this one as well. Closing

*** This bug has been marked as a duplicate of bug 1993679 ***