--HR-261 T1 - Limit permission to edit entitlements

The alert box appears for HRJob and HREntitlement api get due to insufficient permission (Access CiviCRM/ Access HRJob / Administer CiviHR).
So need to check for API permissions as well