Added some more check

pull/10987/head
Michael 2021-11-18 05:57:46 +00:00
rodzic f9ea9e2e97
commit 9841096ce4
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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