Edit Host as non-admin user is orders of magnitudes slower than as admin user
Description of problem:
Editing a host in the Satellite GUI takes significantly longer as a non-admin user than as an admin-user.
From the customer's data, as a non-admin user the /host/<hostid>/edit command takes 55 seconds and as the admin user, this command takes 4.713 seconds.
On our internal reproducer, the non-admin user editing /host/<hostid>/edit command takes 21.10 socends versus 1.89 seconds as the admin user.
Version-Release number of selected component (if applicable):
Every time. Internal reproducer available.
Steps to Reproduce:
1. See private comment due to internal hostnames.
Fixes #24271 - Edit Host as non-admin is slower than admin
For non-admin users, it takes more time in processing
common_parameters partials as comparative to admin.
Removed '.can?' method calls for checking edit & destroy
permissions on parameters and pre-calculated these permissions.