]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Group.php
Prevent settings/userexport to be used by anonymous users
[friendica.git] / src / Module / Group.php
index e22163ecc31e98d1eaeb423b928558ba7f2d0c41..f9fdfd4477d44a0dfdb4d8d33da088a36be1c196 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -319,7 +319,8 @@ class Group extends BaseModule
                        $contacts = Model\Contact\Group::listUngrouped(local_user());
                } else {
                        $contacts_stmt = DBA::select('contact', [],
-                               ['uid' => local_user(), 'pending' => false, 'blocked' => false, 'self' => false],
+                               ['rel' => [Model\Contact::FOLLOWER, Model\Contact::FRIEND, Model\Contact::SHARING],
+                               'uid' => local_user(), 'pending' => false, 'blocked' => false, 'failed' => false, 'self' => false],
                                ['order' => ['name']]
                        );
                        $contacts = DBA::toArray($contacts_stmt);