diff options
author | Einer von Vielen <tomwie@users.sourceforge.net> | 2015-01-14 22:49:16 +0100 |
---|---|---|
committer | Einer von Vielen <tomwie@users.sourceforge.net> | 2015-01-14 22:49:16 +0100 |
commit | dfab2416926631b7b08c6c89b62528ca2520f130 (patch) | |
tree | 6c76af9d656eec6e74ed6c3c05d7ccc2b6ef5e48 /mod/connedit.php | |
parent | 09129cbe5f7e8cb331b68469b74438464960af0b (diff) | |
parent | 7090b58f68251b8c4b39332f2ea051e95ead3df3 (diff) | |
download | volse-hubzilla-dfab2416926631b7b08c6c89b62528ca2520f130.tar.gz volse-hubzilla-dfab2416926631b7b08c6c89b62528ca2520f130.tar.bz2 volse-hubzilla-dfab2416926631b7b08c6c89b62528ca2520f130.zip |
Merge remote-tracking branch 'upstream/master' into toc
Diffstat (limited to 'mod/connedit.php')
-rw-r--r-- | mod/connedit.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index 3f31134cd..5c36c3184 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -55,6 +55,15 @@ function connedit_post(&$a) { if(! $contact_id) return; + // TODO if configured for hassle-free permissions, we'll post the form with ajax as soon as the + // connection enable is toggled to a special autopost url and set permissions immediately, leaving + // the other form elements alone pending a manual submit of the form. The downside is that there + // will be a window of opportunity when the permissions have been set but before you've had a chance + // to review and possibly restrict them. The upside is we won't have to warn you that your connection + // can't do anything until you save the bloody form. + + $autopost = (((argc() > 2) && (argv(2) === 'auto')) ? true : false); + $orig_record = q("SELECT * FROM abook WHERE abook_id = %d AND abook_channel = %d LIMIT 1", intval($contact_id), intval(local_user()) |