]> git.mxchange.org Git - friendica.git/commitdiff
Added some more check
authorMichael <heluecht@pirati.ca>
Thu, 18 Nov 2021 05:57:46 +0000 (05:57 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 18 Nov 2021 05:57:46 +0000 (05:57 +0000)
include/api.php

index cea356602e6afc3e7eed0d4eff24e9b09555ee12..32a6c515675fdce42e479a01d826c9ac4c5355be 100644 (file)
@@ -3293,6 +3293,9 @@ api_register_func('api/friendships/destroy', 'api_friendships_destroy', true, AP
  */
 function api_direct_messages_box($type, $box, $verbose)
 {
+       if (empty(BaseApi::getCurrentUserID())) {
+               throw new ForbiddenException();
+       }
        BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
 
        // params