export/import channel permissions

This commit is contained in:
redmatrix
2016-07-17 22:40:39 -07:00
parent f7833411a1
commit 10fa5c20e7
2 changed files with 39 additions and 9 deletions

View File

@@ -6,6 +6,7 @@
require_once('include/zot.php');
require_once('include/crypto.php');
require_once('include/menu.php');
require_once('include/perm_upgrade.php');
/**
* @brief Called when creating a new channel.
@@ -497,7 +498,8 @@ function identity_basic_export($channel_id, $items = false) {
intval($channel_id)
);
if($r) {
$ret['channel'] = $r[0];
translate_channel_perms_outbound($r[0]);
$ret['channel'] = $r[0];
$ret['relocate'] = [ 'channel_address' => $r[0]['channel_address'], 'url' => z_root()];
}