Groups: Display list of group albums to administrators, even if it is empty

The same behavior has already been implemented with discussions. What for? Previously, to create a group album, it was necessary to manipulate the address. There was no other method. Now this empty list will serve as a button for administrators to create an album and show that such a possibility exists.
This commit is contained in:
Maxim Leshchenko 2022-01-02 17:49:11 +02:00
parent 413e2ac6f0
commit 9e01d0adba
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -189,7 +189,7 @@
</div>
</div>
</div>
<div n:if="$albumsCount > 0">
<div n:if="$albumsCount > 0 || ($thisUser && $club->canBeModifiedBy($thisUser))">
<div class="content_title_expanded" onclick="hidePanel(this, {$albumsCount});">
{_"albums"}
</div>