function mediashare_userapi_hasItemAccess($args) { $mediaId = $args['mediaId']; $access = (int) $args['access']; $viewKey = $args['viewKey']; $accessApi = mediashareGetAccessAPI(); return $accessApi->hasItemAccess($mediaId, $access, $viewKey); }
function mediashareAccessUserRealName() { $accessApi = mediashareGetAccessAPI(); return $accessApi->hasUserRealNameAccess(); }