Steps to reproduce:
- Create host with discovery rule and host prototype
- Make it be discovered
- Navigate to just discovered host
- Create discovery rule on it
- Discovery rule has link to the list of Host prototypes
- Clicking on that link error appears: "No permissions to referred object or it does not exist!"