privacy enforcement on pubmail_enable
This commit is contained in:
parent
a6d88fb8f7
commit
240941237a
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ function item_post(&$a) {
|
||||||
|
|
||||||
// if using the API, we won't see pubmail_enable - figure out if it should be set
|
// if using the API, we won't see pubmail_enable - figure out if it should be set
|
||||||
|
|
||||||
if($api_source && $profile_uid && $profile_uid == local_user()) {
|
if($api_source && $profile_uid && $profile_uid == local_user() && (! $private)) {
|
||||||
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
|
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
|
||||||
if(! $mail_disabled) {
|
if(! $mail_disabled) {
|
||||||
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",
|
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",
|
||||||
|
|
Loading…
Reference in a new issue