aboutsummaryrefslogtreecommitdiffstats
path: root/mod/delegate.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/delegate.php')
-rw-r--r--mod/delegate.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/delegate.php b/mod/delegate.php
index 56d11970f..c19df0681 100644
--- a/mod/delegate.php
+++ b/mod/delegate.php
@@ -54,8 +54,7 @@ function delegate_content(&$a) {
// These people can manage this account/page with full privilege
- $r = q("SELECT * FROM `user` WHERE `uid` = %d AND `email` = '%s' AND `password` = '%s' LIMIT 1",
- intval(local_user()),
+ $r = q("SELECT * FROM `user` WHERE `email` = '%s' AND `password` = '%s' ",
dbesc($a->user['email']),
dbesc($a->user['password'])
);