aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-19 17:52:45 -0700
committerredmatrix <git@macgirvin.com>2016-07-19 17:52:45 -0700
commitea830328634b084e44f9e16f037a8bef3c98280a (patch)
tree595316e830c7a19e495cf6744f825bb70073cc26 /include
parent6a4573b935cb7d451156b2a98622bad0dfa1f0cd (diff)
downloadvolse-hubzilla-ea830328634b084e44f9e16f037a8bef3c98280a.tar.gz
volse-hubzilla-ea830328634b084e44f9e16f037a8bef3c98280a.tar.bz2
volse-hubzilla-ea830328634b084e44f9e16f037a8bef3c98280a.zip
translate more old perms calls
Diffstat (limited to 'include')
-rw-r--r--include/follow.php2
-rw-r--r--include/zot.php2
2 files changed, 2 insertions, 2 deletions
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);