aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-14 03:10:36 -0700
committerfriendica <info@friendica.com>2014-05-14 03:10:36 -0700
commit722b6c78cbf8f0eb53c29fcc0995a488cf862031 (patch)
treec7f3ef8ebb0e50b397f05a7aefa1f3be91cd2e56 /mod/item.php
parent2f1e4a6370da6892433b6d8d57362a5a6565e07c (diff)
downloadvolse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.tar.gz
volse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.tar.bz2
volse-hubzilla-722b6c78cbf8f0eb53c29fcc0995a488cf862031.zip
fix author delete (non-owner)
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 9470a2b9c..68582e580 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -852,10 +852,10 @@ function item_content(&$a) {
require_once('include/security.php');
if((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) {
+
require_once('include/items.php');
- $i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d and uid = %d limit 1",
- intval(argv(2)),
- intval(local_user())
+ $i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d limit 1",
+ intval(argv(2))
);
if($i) {