mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 09:15:19 +00:00
store perms_accept on channel creation
This commit is contained in:
parent
cf5df259e5
commit
fbeb33479b
2 changed files with 3 additions and 3 deletions
|
@ -178,7 +178,7 @@ function create_identity($arr) {
|
||||||
$ret = array('success' => false);
|
$ret = array('success' => false);
|
||||||
|
|
||||||
if(! $arr['account_id']) {
|
if(! $arr['account_id']) {
|
||||||
$ret['message'] = t('No account identifier');
|
$ret['message'] = t('No account identifier');
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
$ret = identity_check_service_class($arr['account_id']);
|
$ret = identity_check_service_class($arr['account_id']);
|
||||||
|
@ -352,7 +352,7 @@ function create_identity($arr) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if($role_permissions) {
|
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
|
else
|
||||||
$myperms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK
|
$myperms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2015-12-27.1259
|
2015-12-29.1261
|
||||||
|
|
Loading…
Reference in a new issue