summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-13 21:11:08 +0000
committerZach Copley <zach@status.net>2010-01-24 16:36:05 -0800
commit9e7f47652d860d7f1e296dd369c4e68814bf2636 (patch)
treef5a86c814d361dec9915d7940452e440a035a6d7 /classes/Profile.php
parentdbcbc2fe7ff0368910a49ed5675b0edc1e2bf18d (diff)
Revoke access token UI
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index fef2a2171..1076fb2cb 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -358,7 +358,8 @@ class Profile extends Memcached_DataObject
'SELECT a.* ' .
'FROM oauth_application_user u, oauth_application a ' .
'WHERE u.profile_id = %d ' .
- 'AND a.id = u.application_id ' .
+ 'AND a.id = u.application_id ' .
+ 'AND u.access_type > 0 ' .
'ORDER BY u.created DESC ';
if ($offset > 0) {