]> git.mxchange.org Git - friendica.git/commitdiff
Test tests
authorMichael <heluecht@pirati.ca>
Wed, 17 Nov 2021 22:59:18 +0000 (22:59 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 17 Nov 2021 22:59:18 +0000 (22:59 +0000)
include/api.php

index 4f3105b021237cd0287d66d503d7b07b6b1975e3..fd58b0d225fee55a914130bbd80a9188c9d771c6 100644 (file)
@@ -599,7 +599,10 @@ function api_statuses_mediap($type)
 {
        $a = DI::app();
 
-       BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
+       if (empty(BaseApi::getCurrentUserID())) {
+               BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
+               throw new ForbiddenException();
+       }
 
        $user_info = DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray();