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 as obtained from LJ::get_remote.

  • item. Hashref from the 'log' table.

Source:

cgi-bin/LJ/User.pm

Returns:

boolean; 1 if remote user can see item