From 1d2fdb259eab5af5f6ba967c61707e3a6dd9a3d0 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 17 Oct 2010 20:24:58 -0700 Subject: funny behaviour with post permissions after recent changes --- boot.php | 2 +- include/security.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index eb3d1b06e..3bc8d2983 100644 --- a/boot.php +++ b/boot.php @@ -1027,7 +1027,7 @@ function photo_new_resource() { if(! function_exists('get_uid')) { function get_uid() { - return ((x($_SESSION,'uid')) ? intval($_SESSION['uid']) : 0) ; + return local_user(); }} // Take a URL from the wild, prepend http:// if necessary diff --git a/include/security.php b/include/security.php index ae161b4a4..1e0107dcc 100644 --- a/include/security.php +++ b/include/security.php @@ -1,11 +1,14 @@