aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-29 11:16:13 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-29 11:16:13 -0800
commitfbeb33479b454248f377ab22244b5c7e8137a193 (patch)
tree55a30e3908cb908f8c4910721d9206aa1801ad81 /include
parentcf5df259e50e708f336f85d01d4ae3cb62ade64f (diff)
downloadvolse-hubzilla-fbeb33479b454248f377ab22244b5c7e8137a193.tar.gz
volse-hubzilla-fbeb33479b454248f377ab22244b5c7e8137a193.tar.bz2
volse-hubzilla-fbeb33479b454248f377ab22244b5c7e8137a193.zip
store perms_accept on channel creation
Diffstat (limited to 'include')
-rw-r--r--include/identity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index 98ba26bd8..cfedd243a 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -178,7 +178,7 @@ function create_identity($arr) {
$ret = array('success' => false);
if(! $arr['account_id']) {
- $ret['message'] = t('No account identifier');
+ $ret['message'] = t('No account identifier');
return $ret;
}
$ret = identity_check_service_class($arr['account_id']);
@@ -352,7 +352,7 @@ function create_identity($arr) {
);
if($role_permissions) {
- $myperms = ((array_key_exists('perms_auto',$role_permissions) && $role_permissions['perms_auto']) ? intval($role_permissions['perms_accept']) : 0);
+ $myperms = ((array_key_exists('perms_accept',$role_permissions)) ? intval($role_permissions['perms_accept']) : 0);
}
else
$myperms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK