mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Groups, Users: Fix right for Groups and Friends list
This commit is contained in:
parent
753a282b88
commit
43bfd48fa9
2 changed files with 33 additions and 31 deletions
|
@ -81,6 +81,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
|
{if $x->getId() !== $thisUser->getId()}
|
||||||
{var subStatus = $x->getSubscriptionStatus($thisUser)}
|
{var subStatus = $x->getSubscriptionStatus($thisUser)}
|
||||||
{if $subStatus === 0}
|
{if $subStatus === 0}
|
||||||
<form action="/setSub/user" method="post" class="profile_link_form">
|
<form action="/setSub/user" method="post" class="profile_link_form">
|
||||||
|
@ -112,4 +113,5 @@
|
||||||
<input type="submit" class="profile_link" value="{_"friends_delete"}" />
|
<input type="submit" class="profile_link" value="{_"friends_delete"}" />
|
||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{var clubPinned = $thisUser->isClubPinned($x)}
|
{var clubPinned = $thisUser->isClubPinned($x)}
|
||||||
{if $clubPinned || $thisUser->getPinnedClubCount() <= 10 || $x->canBeModifiedBy($thisUser ?? NULL)}
|
{if $x->canBeModifiedBy($thisUser ?? NULL) || $clubPinned || $thisUser->getPinnedClubCount() <= 10}
|
||||||
{block actions}
|
{block actions}
|
||||||
<a class="profile_link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
<a class="profile_link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
||||||
{if $clubPinned}
|
{if $clubPinned}
|
||||||
|
|
Loading…
Reference in a new issue