aboutsummaryrefslogtreecommitdiffstats
path: root/include/ConversationObject.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/ConversationObject.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/ConversationObject.php')
-rw-r--r--include/ConversationObject.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ConversationObject.php b/include/ConversationObject.php
index 6448cd632..033ce7f76 100644
--- a/include/ConversationObject.php
+++ b/include/ConversationObject.php
@@ -33,6 +33,9 @@ class Conversation extends BaseObject {
$a = $this->get_app();
+ $observer = $a->get_observer();
+ $ob_hash = (($observer) ? $observer['xchan_hash'] : '');
+
switch($mode) {
case 'network':
$this->profile_owner = local_user();
@@ -40,11 +43,11 @@ class Conversation extends BaseObject {
break;
case 'channel':
$this->profile_owner = $a->profile['profile_uid'];
- $this->writable = can_write_wall($a,$this->profile_owner);
+ $this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments');
break;
case 'display':
$this->profile_owner = $a->profile['uid'];
- $this->writable = can_write_wall($a,$this->profile_owner);
+ $this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments');
break;
default:
logger('[ERROR] Conversation::set_mode : Unhandled mode ('. $mode .').', LOGGER_DEBUG);