From e47a8a9f0937051c17d5f95652098b53610f8cb6 Mon Sep 17 00:00:00 2001
From: Tom Needham <tom@owncloud.com>
Date: Mon, 30 Jul 2012 13:14:29 +0000
Subject: [PATCH] Authorisation requires you to be logged in

---
 settings/oauth.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/settings/oauth.php b/settings/oauth.php
index fc158afe26..5fe21940b0 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',
-- 
GitLab