*/ class FriendsController extends Controller { /** * Gets friends listing * @throws HttpMethodNotAllowedException * @return string */ public function listing(): string { if (!CurrentSession::$user->perms->manageFriends) { throw new HttpMethodNotAllowedException; } return view('settings/friends/listing'); } /** * Gets friend requests listing * @throws HttpMethodNotAllowedException * @return string */ public function requests(): string { if (!CurrentSession::$user->perms->manageFriends) { throw new HttpMethodNotAllowedException; } return view('settings/friends/requests'); } }