-
Hello @Genesis !
On this page https://github.com/unaio/una/wiki/Dev-API you may see that apps have the method which browses the author content like this one:
array (
'module' => 'bx_files',
'method' => 'browse_author',
'params' =>
array (
0 => '{profile_id}',
1 =>
array (
'per_page' => 'bx_files_per_page_profile',
'empty_message' => false,
'no_toolbar' => true,
),
),
)
So you need to modify via Developer it like to add the visibility limit:
array (
'module' => 'bx_files',
'method' => 'browse_author',
'params' =>
array (
0 => '{profile_id}',
1 =>
array (
'allow_visible_to' => 3,
'per_page' => 'bx_files_per_page_profile',
'empty_message' => false,
'no_toolbar' => true,
),
),
)
-
I put this and it still shows videos from closed groups for videos by author:
Original
array (
'module' => 'bx_videos',
'method' => 'browse_author',
)
New
array (
'allow_visible_to' => 3,
'module' => 'bx_videos',
'method' => 'browse_author',
)
-
You may try to set the line
allow_visible_to' => 3,
like
allow_visible_to' => array(3,4,5)
But it may require the changes in the search file/class.
-
What I mean is that it still shows the item on the person's profile even when I use this code. I put it in the Videos of Author block in developer app:
array (
'allow_visible_to' => 3,
'module' => 'bx_videos',
'method' => 'browse_author',
)