From ea830328634b084e44f9e16f037a8bef3c98280a Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 19 Jul 2016 17:52:45 -0700 Subject: translate more old perms calls --- Zotlabs/Module/Connedit.php | 4 ++-- Zotlabs/Module/Settings.php | 2 +- include/follow.php | 2 +- include/zot.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 7f34cfc9b..93ee30999 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -209,7 +209,7 @@ class Connedit extends \Zotlabs\Web\Controller { $role = get_pconfig(local_channel(),'system','permissions_role'); if($role) { - $x = get_role_perms($role); + $x = \Zotlabs\Access\PermissionRoles::role_perms($role); if($x['perms_connect']) { $abook_my_perms = $x['perms_connect']; } @@ -395,7 +395,7 @@ class Connedit extends \Zotlabs\Web\Controller { $my_perms = get_channel_default_perms(local_channel()); $role = get_pconfig(local_channel(),'system','permissions_role'); if($role) { - $x = get_role_perms($role); + $x = \Zotlabs\Access\PermissionRoles::role_perms($role); if($x['perms_connect']) $my_perms = $x['perms_connect']; } diff --git a/Zotlabs/Module/Settings.php b/Zotlabs/Module/Settings.php index 514078b2f..af3a25c60 100644 --- a/Zotlabs/Module/Settings.php +++ b/Zotlabs/Module/Settings.php @@ -379,7 +379,7 @@ class Settings extends \Zotlabs\Web\Controller { ); } else { - $role_permissions = get_role_perms($_POST['permissions_role']); + $role_permissions = \Zotlabs\Access\PermissionRoles::role_perms($_POST['permissions_role']); if(! $role_permissions) { notice('Permissions category could not be found.'); return; diff --git a/include/follow.php b/include/follow.php index acd734896..5f63687f8 100644 --- a/include/follow.php +++ b/include/follow.php @@ -66,7 +66,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) $role = get_pconfig($uid,'system','permissions_role'); if($role) { - $x = get_role_perms($role); + $x = \Zotlabs\Access\PermissionRoles::role_perms($role); if($x['perms_connect']) $my_perms = $x['perms_connect']; } diff --git a/include/zot.php b/include/zot.php index d306ab15f..cc892e13b 100644 --- a/include/zot.php +++ b/include/zot.php @@ -460,7 +460,7 @@ function zot_refresh($them, $channel = null, $force = false) { $role = get_pconfig($channel['channel_id'],'system','permissions_role'); if($role) { - $xx = get_role_perms($role); + $xx = \Zotlabs\Access\PermissionRoles::role_perms($role); if($xx['perms_auto']) { $default_perms = $xx['perms_connect']; $my_perms = \Zotlabs\Access\Permissions::FilledPerms($default_perms); -- cgit v1.2.3