More code simplification
This commit is contained in:
parent
68b9a9796c
commit
ee8cf83722
1 changed files with 0 additions and 6 deletions
|
@ -80,18 +80,12 @@ class Thread
|
||||||
$this->writable = true;
|
$this->writable = true;
|
||||||
break;
|
break;
|
||||||
case Conversation::MODE_PROFILE:
|
case Conversation::MODE_PROFILE:
|
||||||
$this->profile_owner = $a->getProfileOwner();
|
|
||||||
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
|
|
||||||
break;
|
|
||||||
case Conversation::MODE_DISPLAY:
|
case Conversation::MODE_DISPLAY:
|
||||||
$this->profile_owner = $a->getProfileOwner();
|
$this->profile_owner = $a->getProfileOwner();
|
||||||
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
|
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
|
||||||
break;
|
break;
|
||||||
case Conversation::MODE_CHANNEL:
|
case Conversation::MODE_CHANNEL:
|
||||||
case Conversation::MODE_COMMUNITY:
|
case Conversation::MODE_COMMUNITY:
|
||||||
$this->profile_owner = 0;
|
|
||||||
$this->writable = $writable;
|
|
||||||
break;
|
|
||||||
case Conversation::MODE_CONTACTS:
|
case Conversation::MODE_CONTACTS:
|
||||||
$this->profile_owner = 0;
|
$this->profile_owner = 0;
|
||||||
$this->writable = $writable;
|
$this->writable = $writable;
|
||||||
|
|
Loading…
Reference in a new issue