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