Unwanted logout if looking into an item in the history
🐛 Bug Report
After logging in via EOSC AAI (being a contributor) and going to the EMM item that Laure created and that was approved by Administrator, I'm able to have a look at the "history" where I see some older versions of the item. The current one has an "Edit" link, the others doesn't but you can click on the title of one of the others and if you do so, it works some seconds and will then give you the error message "Failed to fetch tool" and it logs you out. You end in the login window and you need to login once again.
🤔 Expected Behavior
If it is not possible for me to see an older version of an item, there should be no link to this item.
If I click on an item where I don't have a permission, I like to see an error message only about this fact.
😯 Current Behavior
You are not aware that you don't have the permission to see an older version of an item.
You are logged out of the MP after you click on an item where you don't have an access permission .
The error "Failed to fetch tool" doesn't give you the correct information, that you don't have the permission.