aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-12 12:46:09 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-12 12:46:38 +0200
commit984de8f46f138932dda66adb4160b57220836697 (patch)
tree5f08173cc58efbe1cf05ae871cdb5c00b4cc70ac /include/account.php
parent6ad4ed87a313901dd40fb1f8370c5bfdc7acddc8 (diff)
downloadvolse-hubzilla-984de8f46f138932dda66adb4160b57220836697.tar.gz
volse-hubzilla-984de8f46f138932dda66adb4160b57220836697.tar.bz2
volse-hubzilla-984de8f46f138932dda66adb4160b57220836697.zip
fix postgres issue if register mode is set to yes - with approval
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/account.php b/include/account.php
index 2b24364f4..51118c3c5 100644
--- a/include/account.php
+++ b/include/account.php
@@ -331,7 +331,9 @@ function verify_email_address($arr) {
function send_reg_approval_email($arr) {
- $r = q("select * from account where account_roles & " . intval(ACCOUNT_ROLE_ADMIN));
+ $r = q("select * from account where (account_roles & %d) >= 4096",
+ intval(ACCOUNT_ROLE_ADMIN)
+ );
if(! ($r && count($r)))
return false;
@@ -828,4 +830,4 @@ function get_account_techlevel($account_id = 0) {
return (($x) ? intval($x['account_level']) : 0);
-} \ No newline at end of file
+}