Skip to content

Commit 8897bbe

Browse files
Mutugiiidogi
andauthored
community: smoother reports buttons handling (fixes #9588) (#9856)
Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent 2b88f3d commit 8897bbe

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "planet",
33
"license": "AGPL-3.0",
4-
"version": "0.22.46",
4+
"version": "0.22.47",
55
"myplanet": {
66
"latest": "v0.53.33",
77
"min": "v0.51.90"

src/app/community/community.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export class CommunityComponent implements OnInit, OnDestroy {
211211
this.userService.userChange$.pipe(takeUntil(this.onDestroy$)).subscribe(() => {
212212
this.user = this.userService.get();
213213
this.isLoggedIn = this.user._id !== undefined;
214+
this.isCommunityLeader = this.user.isUserAdmin || this.user?.roles?.indexOf('leader') > -1;
214215
this.getCommunityData();
215216
});
216217
}

0 commit comments

Comments
 (0)