getUser($request); if (!RangeAuthority::canShowRange($user, $range)) { throw new AuthorizationFailedException(); } return $this->getMetaResponse([ 'is-admin' => CoreForum::isAdmin($range->id), 'is-moderator' => CoreForum::isModerator($range->id), 'anonymous-post' => (bool) Config::get()->FORUM_ANONYMOUS_POSTINGS, 'tile-layout' => (bool) UserConfig::get($user->user_id)->FORUM_TILE_LAYOUT ]); } }