mirror of
https://github.com/friendica/friendica
synced 2025-01-10 05:24:43 +00:00
Added some more check
This commit is contained in:
parent
f9ea9e2e97
commit
9841096ce4
1 changed files with 3 additions and 0 deletions
|
@ -3293,6 +3293,9 @@ api_register_func('api/friendships/destroy', 'api_friendships_destroy', true, AP
|
||||||
*/
|
*/
|
||||||
function api_direct_messages_box($type, $box, $verbose)
|
function api_direct_messages_box($type, $box, $verbose)
|
||||||
{
|
{
|
||||||
|
if (empty(BaseApi::getCurrentUserID())) {
|
||||||
|
throw new ForbiddenException();
|
||||||
|
}
|
||||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||||
|
|
||||||
// params
|
// params
|
||||||
|
|
Loading…
Reference in a new issue