X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FACL.php;h=347e8278f9eca5d3d1b2ab762e756fb382a9660c;hb=06284e60073f374c1bd411e0bba6474a13c14f10;hp=0da636699e690d71116d823688cf0e6f2984e1ae;hpb=a6423031eba1236127160ced3028e36401f40536;p=friendica.git diff --git a/src/Core/ACL.php b/src/Core/ACL.php index 0da636699e..347e8278f9 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -1,6 +1,6 @@ registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.css')); $page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput-typeahead.css')); - // When used for private messages, we limit correspondence to mutual DFRN/Friendica friends and the selector - // to one recipient. By default our selector allows multiple selects amongst all contacts. $condition = [ 'uid' => local_user(), 'self' => false, @@ -60,7 +70,7 @@ class ACL 'archive' => false, 'deleted' => false, 'rel' => [Contact::FOLLOWER, Contact::SHARING, Contact::FRIEND], - 'network' => Protocol::FEDERATED, + 'network' => Protocol::SUPPORT_PRIVATE, ]; $contacts = Contact::selectToArray( @@ -210,7 +220,7 @@ class ACL * Return the full jot ACL selector HTML * * @param Page $page - * @param array $user User array + * @param int $uid User ID * @param bool $for_federation * @param array $default_permissions Static defaults permission array: * [ @@ -226,18 +236,20 @@ class ACL */ public static function getFullSelectorHTML( Page $page, - array $user = null, + int $uid = null, bool $for_federation = false, array $default_permissions = [], array $condition = [], $form_prefix = '' ) { - if (empty($user['uid'])) { + if (empty($uid)) { return ''; } static $input_group_id = 0; + $user = User::getById($uid); + $input_group_id++; $page->registerFooterScript(Theme::getPathForFile('asset/typeahead.js/dist/typeahead.bundle.js'));