aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-05 16:21:03 -0800
committerfriendica <info@friendica.com>2014-11-05 16:21:03 -0800
commit3b22e2f5f508cb5e45ae426210e5ca9fe9115417 (patch)
tree93790ebab894b1133eac146f372810aae422cf79 /include/identity.php
parentb16ee29cc338236264e62cf40248f54a1f785dbd (diff)
downloadvolse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.tar.gz
volse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.tar.bz2
volse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.zip
some minor cleanup of unreported (and as yet undiscovered) issues with permissions toggling. No smoking guns and no obvious issues discovered here. Repeated and tried to duplicate zottell's issue as described without seeing any obvious problems.
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 16e3eff0e..b9ee00623 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -376,6 +376,8 @@ function create_identity($arr) {
set_pconfig($newuid,'system','permissions_role',$arr['permissions_role']);
if(array_key_exists('online',$role_permissions))
set_pconfig($newuid,'system','hide_presence',1-intval($role_permissions['online']));
+ if(array_key_exists('perms_auto',$role_permissions))
+ set_pconfig($newuid,'system','autoperms',(($role_permissions['perms_auto']) ? $role_permissions['perms_accept'] : 0));
}
// Create a group with yourself as a member. This allows somebody to use it