»

LJ::can_view

LJ::can_view — Checks to see if the remote user can view a given journal entry. Note: This is meant for use on single entries at a time, not for calling many times on every entry in a journal.

Use

LJ::can_view(remote, item);

Arguments

  • remote. Hashref of remote user containing \'user\' and \'userid\' keys if obtained from LJ::get_remote or just \'user\' if untrusted and obtained from LJ::get_remote_noauth.

  • item. Hashref from the 'log' table.

Source:

cgi-bin/ljlib.pl

Returns:

boolean; 1 if remote user can see item