Bug 1208604
Summary: | Non-admin user unable to set email notifications | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | sthirugn <sthirugn> | ||||
Component: | Content Management | Assignee: | Stephen Benjamin <stbenjam> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | sthirugn <sthirugn> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | CC: | cwelton, mmccune | ||||
Target Milestone: | Unspecified | ||||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-04-07 08:55:45 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: | |||||||
Attachments: |
|
*** This bug has been marked as a duplicate of bug 1145814 *** |
Created attachment 1010236 [details] foreman-debug Description of problem: Non-admin user unable to set email notifications. Creating a test role for Mail Notification failed Version-Release number of selected component (if applicable): Satellite-6.1.0-RHEL-6-20150331.1 How reproducible: Always Steps to Reproduce: 1. Create a new role 2. Attempt to create a new filter in the newly created role - Go to the role -> Filters -> New Filter -> Select Resource Type = Mail Notification -> Add view_mail_notifications item -> Click on Submit Actual results: The page refreshes and the filter is not saved ==> /var/log/foreman/production.log <== 2015-04-02 18:20:10 [I] Processing by FiltersController#create as HTML 2015-04-02 18:20:10 [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"ECR/S1GofTeR9+/9A7AgBsMNbjMSMCl1eO988dBVTdI=", "filter"=>{"role_id"=>"15", "resource_type"=>"MailNotification", "permission_ids"=>["", "92"], "unlimited"=>"1", "location_ids"=>[""], "organization_ids"=>["", "", ""]}, "role_id"=>"15", "commit"=>"Submit"} 2015-04-02 18:20:10 [I] Failed to save: Organization ids You can't assign organizations to this resource 2015-04-02 18:20:10 [I] Rendered common/_edit_habtm.html.erb (2.8ms) 2015-04-02 18:20:10 [I] Rendered common/_edit_habtm.html.erb (4.0ms) 2015-04-02 18:20:10 [I] Rendered filters/_form.html.erb (40.0ms) 2015-04-02 18:20:10 [I] Rendered filters/new.html.erb within layouts/application (40.6ms) 2015-04-02 18:20:10 [I] Rendered home/_submenu.html.erb (3.1ms) 2015-04-02 18:20:10 [I] Rendered home/_user_dropdown.html.erb (1.6ms) 2015-04-02 18:20:10 [I] Read fragment views/tabs_and_title_records-3 (0.1ms) 2015-04-02 18:20:10 [I] Rendered home/_topbar.html.erb (6.5ms) 2015-04-02 18:20:10 [I] Rendered layouts/base.html.erb (7.8ms) 2015-04-02 18:20:10 [I] Completed 200 OK in 81ms (Views: 47.0ms | ActiveRecord: 7.5ms) Expected results: The filter is saved and user confirmation is displayed. Additional info: This bug will prevent setting email notifications for any non admin user. Without this filter the email notification setting will not be shown for non-admin users.