aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-12 17:20:28 -0800
committerfriendica <info@friendica.com>2015-01-12 17:20:28 -0800
commit2f9fe0280ecb2dcf2bb5b5fe9eed6a6651856647 (patch)
treea512be9bad7f3f4a1788aaf720ce3942b2ac0f5f
parent66cef7531a182dcf122ddb2ea695628b4d083bd8 (diff)
downloadvolse-hubzilla-2f9fe0280ecb2dcf2bb5b5fe9eed6a6651856647.tar.gz
volse-hubzilla-2f9fe0280ecb2dcf2bb5b5fe9eed6a6651856647.tar.bz2
volse-hubzilla-2f9fe0280ecb2dcf2bb5b5fe9eed6a6651856647.zip
document the pros and cons of the not-yet written hassle-free connection auto-permission setting.
-rw-r--r--mod/connedit.php9
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())