diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-23 16:05:55 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-23 16:05:55 -0700 |
commit | 97308ad2fbb31ec90644e6145ec6e17bc9663c22 (patch) | |
tree | 9065534114119ad76fc31998442ad857fc1384df | |
parent | 66d72d9870ac004784484857e9369238f6cae1a9 (diff) | |
download | volse-hubzilla-97308ad2fbb31ec90644e6145ec6e17bc9663c22.tar.gz volse-hubzilla-97308ad2fbb31ec90644e6145ec6e17bc9663c22.tar.bz2 volse-hubzilla-97308ad2fbb31ec90644e6145ec6e17bc9663c22.zip |
provide a short term compatibility mapping between social_party and social_federation
-rw-r--r-- | Zotlabs/Module/Settings/Channel.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php index 3e928ec58..65b9b197e 100644 --- a/Zotlabs/Module/Settings/Channel.php +++ b/Zotlabs/Module/Settings/Channel.php @@ -21,6 +21,10 @@ class Channel { $role = ((x($_POST,'permissions_role')) ? notags(trim($_POST['permissions_role'])) : ''); $oldrole = get_pconfig(local_channel(),'system','permissions_role'); + // This mapping can be removed after 3.4 release + if($oldrole === 'social_party') { + $oldrole = 'social_federation'; + } if(($role != $oldrole) || ($role === 'custom')) { @@ -471,6 +475,10 @@ class Channel { $permissions_role = get_pconfig(local_channel(),'system','permissions_role'); if(! $permissions_role) $permissions_role = 'custom'; + // compatibility mapping - can be removed after 3.4 release + if($permissions_role === 'social_party') + $permissions_role = 'social_federation'; + $permissions_set = (($permissions_role != 'custom') ? true : false); |