mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
Fix funny bug
This commit is contained in:
parent
c3395f39bb
commit
80d15ca32a
3 changed files with 3 additions and 3 deletions
|
@ -535,7 +535,7 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
$post->setNsfw($this->postParam("nsfw") == "true");
|
$post->setNsfw($this->postParam("nsfw") == "true");
|
||||||
$flags = 0;
|
$flags = 0;
|
||||||
|
|
||||||
if($post->getTargetWall() < 0) {
|
if($post->getTargetWall() < 0 && $post->getWallOwner()->canBeModifiedBy($this->user->identity)) {
|
||||||
if($this->postParam("fromgroup") == "true") {
|
if($this->postParam("fromgroup") == "true") {
|
||||||
$flags |= 0b10000000;
|
$flags |= 0b10000000;
|
||||||
$post->setFlags($flags);
|
$post->setFlags($flags);
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<a class="edit" id="editPost"
|
<a class="edit" id="editPost"
|
||||||
data-id="{$post->getId()}"
|
data-id="{$post->getId()}"
|
||||||
data-nsfw="{(int)$post->isExplicit()}"
|
data-nsfw="{(int)$post->isExplicit()}"
|
||||||
{if $post->getTargetWall() < 0}data-fromgroup="{(int)$post->isPostedOnBehalfOfGroup()}"{/if}></a>
|
{if $post->getTargetWall() < 0 && $post->getWallOwner()->canBeModifiedBy($thisUser)}data-fromgroup="{(int)$post->isPostedOnBehalfOfGroup()}"{/if}></a>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="post-content" id="{$post->getPrettyId()}">
|
<div class="post-content" id="{$post->getPrettyId()}">
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<a id="editPost"
|
<a id="editPost"
|
||||||
data-id="{$post->getId()}"
|
data-id="{$post->getId()}"
|
||||||
data-nsfw="{(int)$post->isExplicit()}"
|
data-nsfw="{(int)$post->isExplicit()}"
|
||||||
{if $post->getTargetWall() < 0}data-fromgroup="{(int)$post->isPostedOnBehalfOfGroup()}"{/if}>{_edit}</a> |
|
{if $post->getTargetWall() < 0 && $post->getWallOwner()->canBeModifiedBy($thisUser)}data-fromgroup="{(int)$post->isPostedOnBehalfOfGroup()}"{/if}>{_edit}</a> |
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if !($forceNoDeleteLink ?? false) && $post->canBeDeletedBy($thisUser)}
|
{if !($forceNoDeleteLink ?? false) && $post->canBeDeletedBy($thisUser)}
|
||||||
|
|
Loading…
Reference in a new issue