Ticket #12898 (closed Bug: wontfix)
getRemoteURL logic surprising and faulty
|Reported by:||miohtama||Owned by:|
Currently Link content have getRemoteUrl portal_catalog metadata. This is to adi to links go to the their target directly if you are a site visitor.
However the logic deciding when to follow link automatically (print direct URL) is faulty:
def get_link_url(item): linkremote = item.getRemoteUrl and not member == item.Creator if linkremote: return (get_id(item), item.getRemoteUrl) else: return False
This means that only item creator is able to go to the link by clicking it, edit it and correct the URL. Other site editors cannot do this.
- Is it possible to check whether you are able to edit the item in the navigation tree output stage - this would be the correct check
- If is not possible could this condition made overrideable, so that at least sites suffering from this logic (editors don't want getRemoteUrl() behavior) have a way to set a workaround locally e.g. having getRemoteUrl() behavior only for anonymous visitors