aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.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 /include/conversation.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 'include/conversation.php')
-rw-r--r--include/conversation.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 2eabbcb0c..ef0781b09 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -406,7 +406,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
elseif($mode === 'channel') {
$profile_owner = $a->profile['profile_uid'];
- $page_writeable = can_write_wall($a,$profile_owner);
+ $page_writeable = ($profile_owner == local_user());
if(!$update) {
$tab = notags(trim($_GET['tab']));
@@ -427,22 +427,12 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
elseif($mode === 'display') {
$profile_owner = $a->profile['uid'];
- $page_writeable = can_write_wall($a,$profile_owner);
+ $page_writeable = ($profile_owner == local_user());
$live_update_div = '<div id="live-display"></div>' . "\r\n";
}
- elseif($mode === 'community') {
- $profile_owner = 0;
- $page_writeable = false;
-
- if(!$update) {
- $live_update_div = '<div id="live-community"></div>' . "\r\n"
- . "<script> var profile_uid = -1; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
-
- }
- }
else if($mode === 'search') {
$live_update_div = '<div id="live-search"></div>' . "\r\n";
}