aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-14 17:23:19 -0700
committerzotlabs <mike@macgirvin.com>2018-05-14 17:23:19 -0700
commit229d82c4c7ca37c304d1291be7f71ba4b0632f03 (patch)
tree9f0ce27c1e82380987dd9ea317d6bf8e516f7a6b /include
parentd9759ba63c8fd70c4da66669389bd19bae3333ff (diff)
parent2d1dbc8f40d0b9fa89b99861fac30d579a400e34 (diff)
downloadvolse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.tar.gz
volse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.tar.bz2
volse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'include')
-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
+}