1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

restrict access based on org permissions

This commit is contained in:
Kyle Spearrin
2018-07-10 09:19:29 -04:00
parent ddd832d016
commit febc3093a9
5 changed files with 45 additions and 9 deletions

View File

@@ -1,7 +1,26 @@
import { Component } from '@angular/core';
import {
Component,
OnInit,
} from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { UserService } from 'jslib/abstractions/user.service';
@Component({
selector: 'app-org-manage',
templateUrl: 'manage.component.html',
})
export class ManageComponent { }
export class ManageComponent implements OnInit {
accessGroups = false;
accessEvents = false;
constructor(private route: ActivatedRoute, private userService: UserService) { }
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
const organization = await this.userService.getOrganization(params.organizationId);
this.accessEvents = organization.useEvents;
this.accessGroups = organization.useGroups;
});
}
}