Enabled Fastbook/OAuth login

This commit is contained in:
Deon George
2013-05-23 17:00:14 +10:00
parent c52e9b33d2
commit 7dd64e68bf
15 changed files with 2071 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class URL extends Kohana_URL {
);
public static function admin_url() {
return (Request::current() AND ((Auth::instance()->logged_in() AND ! empty(URL::$method_directory[strtolower(Request::current()->directory())])) OR in_array(strtolower(Request::current()->controller()),array('login'))));
return (Request::current() AND ((Auth::instance()->logged_in() AND ! empty(URL::$method_directory[strtolower(Request::current()->directory())])) OR in_array(strtolower(Request::current()->controller()),array('login','oauth'))));
}
/**