aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-05 12:37:54 +0100
committerMax Kostikov <max@kostikov.co>2019-12-05 12:37:54 +0100
commitcde706748a3bdda1af77251febadb5610a55d6e7 (patch)
tree013145cc17558961ca118ea12cb6779f0ed80953
parent475a39ff90345fabd21d36070c083812d3832562 (diff)
downloadvolse-hubzilla-cde706748a3bdda1af77251febadb5610a55d6e7.tar.gz
volse-hubzilla-cde706748a3bdda1af77251febadb5610a55d6e7.tar.bz2
volse-hubzilla-cde706748a3bdda1af77251febadb5610a55d6e7.zip
Unpin pinned item on site admin deletion
-rw-r--r--Zotlabs/Module/Pin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pin.php b/Zotlabs/Module/Pin.php
index 352a056ed..63b28754b 100644
--- a/Zotlabs/Module/Pin.php
+++ b/Zotlabs/Module/Pin.php
@@ -42,7 +42,7 @@ class Pin extends \Zotlabs\Web\Controller {
switch(argv(1)) {
case 'pin':
- if(! local_channel() || local_channel() != $r[0]['uid'])
+ if(! local_channel() || (local_channel() != $r[0]['uid'] && local_channel() != is_site_admin()))
http_status_exit(403, 'Forbidden');
// Currently allow only one pinned item for each type
set_pconfig($r[0]['uid'], 'pinned', $r[0]['item_type'], ($pinned ? [] : [ $midb64 ]));