From bc46f70a90a25cc3f4395c1badfec6aad351589f Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 21 Jul 2016 20:04:30 -0700 Subject: zat URL auth updated to match changes to the atoken_login interface --- include/channel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index 708e70b1c..a5233743d 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1371,7 +1371,8 @@ function zat_init() { dbesc($_REQUEST['zat']) ); if($r) { - atoken_login($r[0]); + $xchan = atoken_xchan($r[0]); + atoken_login($xchan); } } -- cgit v1.2.3 From 80e433831430e9edc3829d2760551e03643cc598 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 26 Jul 2016 19:28:28 -0700 Subject: missing s --- include/channel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index a5233743d..88dd818e6 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1568,7 +1568,7 @@ function is_public_profile() { return false; $channel = App::get_channel(); if($channel) { - $perm = \Zotlabs\Access\PermissionLimit::Get($channel['channel_id'],'view_profile'); + $perm = \Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'view_profile'); if($perm == PERMS_PUBLIC) return true; } -- cgit v1.2.3