]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Like.php
Merge pull request #7712 from annando/proxy-logging
[friendica.git] / src / Module / Like.php
index f57cbadfd357516abe30977c63f3d6faf4a74484..a43e38045c8c611213a81ba7b240ebd2a98603c9 100644 (file)
@@ -4,6 +4,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Model\Item;
+use Friendica\Core\Session;
 use Friendica\Network\HTTPException;
 use Friendica\Util\Strings;
 
@@ -14,7 +15,7 @@ class Like extends BaseModule
 {
        public static function rawContent()
        {
-               if (!local_user() && !remote_user()) {
+               if (!Session::isAuthenticated()) {
                        throw new HTTPException\ForbiddenException();
                }