Bug #21140
closedIf you are in org foo, you cannot delete org bar if bar has systems in it.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1424607
Description of problem:
If you are in org foo, you cannot delete org bar if bar has systems in it. When you're at
https://satellite.example.com/organizations
and you're in one org, all other orgs will show as having 0 systems even if they do have systems. If you try to delete one of those orgs with systems, you'll get an error:
Oops, we're sorry but something went wrong Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject.
The full trace is attached.
How reproducible:
100%
Steps to Reproduce:
1. In your satellite, select one of your orgs
2. Go to manage organizations
3. Try to delete one of your other organizations that has systems.
Actual results:
Error as posted above.
Expected results:
If it is a permissions issue (even though I'm admin and can just as easily select that other org to be in), then a nice permissions denied message should be displayed, not a traceback.
Additional info: