UserEngine: link_if_authorized question

Hi all

link_if_authorized is quite a useful helper, but it’s quite nonsense in
the following case:

I have a news system, where every user can add his own news. Afterwards
every user can edit and delete his own news.

The use of link_if_authorized is very small, because every user is
allowed to access news/edit, but only if it’s his own news item (but the
authorization check of link_if_authorized doesn’t know anything about
this). So the link is shown to every user on every news item, but if he
clicks on it within a news item of another user, then he gets the
feedback that he is not allowed to do that.

So what should I do? Something like that?

<%= link_if_authorized(…) if news_item.user == logged_in_user %>

Greets and thanks,
Josh