diff --git a/settings/oauth.php b/settings/oauth.php
index fc158afe26e41ac000cece4ae727ad3f42d8c51c..5fe21940b042e22cad1bea431a8621fcd5447acd 100644
--- a/settings/oauth.php
+++ b/settings/oauth.php
@@ -19,6 +19,7 @@ switch($operation){
 	break;
 	
 	case 'authorise';
+		OC_Util::checkLoggedIn();
 		// Example
 		$consumer = array(
 			'name' => 'Firefox Bookmark Sync',