From: Mike Macgirvin Date: Mon, 18 Oct 2010 03:24:58 +0000 (-0700) Subject: funny behaviour with post permissions after recent changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d2fdb259eab5af5f6ba967c61707e3a6dd9a3d0;p=friendica.git funny behaviour with post permissions after recent changes --- diff --git a/boot.php b/boot.php index eb3d1b06e3..3bc8d2983d 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 ae161b4a43..1e0107dcca 100644 --- a/include/security.php +++ b/include/security.php @@ -1,11 +1,14 @@