Merge pull request #5117 from FinnStutzenstein/fixGroupsMatrix

Fixed duplicate permissions in the group matrix (fixed #5112)
This commit is contained in:
Sean 2019-11-05 14:55:12 +01:00 committed by GitHub
commit be2e8d9584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,7 @@ export class GroupRepositoryService extends BaseRepository<ViewGroup, Group, Gro
*/ */
private sortPermsPerApp(): void { private sortPermsPerApp(): void {
this.constantsService.get<any>('Permissions').subscribe(perms => { this.constantsService.get<any>('Permissions').subscribe(perms => {
this.appPermissions = [];
let pluginCounter = 0; let pluginCounter = 0;
for (const perm of perms) { for (const perm of perms) {
// extract the apps name // extract the apps name