aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-01 20:12:52 -0700
committerredmatrix <git@macgirvin.com>2016-08-01 20:12:52 -0700
commit3a7d3e3a542ef9297a8a20e3548f01f43fb37f0e (patch)
tree6407606ded7a75412ed888a80693f3774e63c875 /include/connections.php
parent4c76b31684342259a43c036373f3757a916b1d3a (diff)
downloadvolse-hubzilla-3a7d3e3a542ef9297a8a20e3548f01f43fb37f0e.tar.gz
volse-hubzilla-3a7d3e3a542ef9297a8a20e3548f01f43fb37f0e.tar.bz2
volse-hubzilla-3a7d3e3a542ef9297a8a20e3548f01f43fb37f0e.zip
This checkin should make all permission modes work correctly with atokens (they should be able to post content if allowed to). It also removes the strict linkage between permissions and connections so any individual permission can be set for any xchan; even those for which you have no connections.
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/connections.php b/include/connections.php
index 9f55820cc..4f685388c 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -566,6 +566,7 @@ function contact_remove($channel_id, $abook_id) {
drop_item($rr['id'],false);
}
}
+
q("delete from abook where abook_id = %d and abook_channel = %d",
intval($abook['abook_id']),
@@ -588,6 +589,11 @@ function contact_remove($channel_id, $abook_id) {
intval($channel_id)
);
+ $r = q("delete from abconfig where chan = %d and xchan = '%s'",
+ intval($channel_id),
+ dbesc($abook['abook_xchan'])
+ );
+
return true;
}