From 465c5c8cfb8f94abe9e226da0d534df5c090a229 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 18 Jan 2022 10:26:13 +0100 Subject: make sure to use the correct default role --- Zotlabs/Lib/Activity.php | 2 +- Zotlabs/Module/New_channel.php | 2 +- include/channel.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index cacf4d979..2de25885a 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1402,7 +1402,7 @@ class Activity { } } - $x = PermissionRoles::role_perms('social'); + $x = PermissionRoles::role_perms('personal'); $their_perms = Permissions::FilledPerms($x['perms_connect']); if ($contact && $contact['abook_id']) { diff --git a/Zotlabs/Module/New_channel.php b/Zotlabs/Module/New_channel.php index 5989e3da6..24dbe2944 100644 --- a/Zotlabs/Module/New_channel.php +++ b/Zotlabs/Module/New_channel.php @@ -138,7 +138,7 @@ class New_channel extends \Zotlabs\Web\Controller { intval($aid) ); if($r && (! intval($r[0]['total']))) { - $default_role = get_config('system','default_permissions_role','social'); + $default_role = get_config('system','default_permissions_role','personal'); } $limit = account_service_class_fetch(get_account_id(),'total_identities'); diff --git a/include/channel.php b/include/channel.php index c80a35385..4e84b1b32 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2301,7 +2301,7 @@ function auto_channel_create($account_id) { } } if(! $arr['permissions_role']) - $arr['permissions_role'] = 'social'; + $arr['permissions_role'] = 'personal'; if(validate_channelname($arr['name'])) return false; -- cgit v1.2.3