lots more permission work

This commit is contained in:
redmatrix
2016-07-13 19:53:28 -07:00
parent b72720f6b6
commit 1fd65c934d
5 changed files with 50 additions and 24 deletions

View File

@@ -133,7 +133,7 @@ class Connedit extends \Zotlabs\Web\Controller {
if($all_perms) {
foreach($all_perms as $perm => $desc) {
if(in_array('perms_' . $perm, $_POST)) {
if(array_key_exists('perms_' . $perm, $_POST)) {
set_abconfig($channel['channel_id'],$orig_record[0]['abook_xchan'],'my_perms',$perm,
intval($_POST['perms_' . $perm]));
$abook_my_perms ++;