From 7bee460df28bcd956206c3719e091fb500e3045d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Oct 2012 23:05:45 -0700 Subject: provide auto admin registration as before, but allow the current admin to create other admins --- mod/item.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 4c30736c9..83c0fa1d3 100644 --- a/mod/item.php +++ b/mod/item.php @@ -22,6 +22,10 @@ require_once('include/items.php'); function item_post(&$a) { + + // This will change. Figure out who the observer is and whether or not + // they have permission to post here. Else ignore the post. + if((! local_user()) && (! remote_user()) && (! x($_REQUEST,'commenter'))) return; -- cgit v1.2.3