aboutsummaryrefslogtreecommitdiffstats
path: root/mod/subthread.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-09 18:07:36 -0800
committerfriendica <info@friendica.com>2012-12-09 18:07:36 -0800
commitf8c33243bf0440c6ddab63dbf3a755e4d506122b (patch)
tree24166874ffc80d4da665d7fee43c5da018af86ad /mod/subthread.php
parent7f7767064918e95524de324b4520943ee34e04c3 (diff)
downloadvolse-hubzilla-f8c33243bf0440c6ddab63dbf3a755e4d506122b.tar.gz
volse-hubzilla-f8c33243bf0440c6ddab63dbf3a755e4d506122b.tar.bz2
volse-hubzilla-f8c33243bf0440c6ddab63dbf3a755e4d506122b.zip
start to whip the permissions into shape, also got rid of the mce drop shadow until we can figure out how to do it without the ugly black bars. I tend to prefer "outy" shadows over "inny" shadows anyway, but maybe that's just me.
Diffstat (limited to 'mod/subthread.php')
-rwxr-xr-xmod/subthread.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/subthread.php b/mod/subthread.php
index 7ad7dfd6b..f8918e25d 100755
--- a/mod/subthread.php
+++ b/mod/subthread.php
@@ -28,10 +28,12 @@ function subthread_content(&$a) {
$item = $r[0];
$owner_uid = $item['uid'];
+ $observer = $a->get_observer();
+ $ob_hash = (($observer) ? $observer['xchan_hash'] : '');
- if(! can_write_wall($a,$owner_uid)) {
+ if(! perm_is_allowed($owner_uid,$ob_hash,'post_comments'))
return;
- }
+
$remote_owner = null;