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:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user