1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

[SM-554] hide admin onboarding items from non-admin (#4843)

* hide onboarding items if not admin

* fix inconsistent padding
This commit is contained in:
Will Martin
2023-02-24 08:58:00 -05:00
committed by GitHub
parent b7f465e552
commit da9f4e1fb3
2 changed files with 5 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ export class OverviewComponent implements OnInit, OnDestroy {
private tableSize = 10;
private organizationId: string;
protected organizationName: string;
protected userIsAdmin: boolean;
protected view$: Observable<{
allProjects: ProjectListView[];
@@ -96,6 +97,7 @@ export class OverviewComponent implements OnInit, OnDestroy {
.subscribe((org) => {
this.organizationId = org.id;
this.organizationName = org.name;
this.userIsAdmin = org.isAdmin;
});
const projects$ = combineLatest([