Skip to content
Snippets Groups Projects
Commit e521461f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #11645 TIME 0:10 fix priv update with superadmin

parent bcb0b418
No related branches found
No related tags found
No related merge requests found
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { LANG } from '../app/translate.component';
import { tap, catchError, filter, map } from 'rxjs/operators';
import { tap, catchError, map } from 'rxjs/operators';
import { of } from 'rxjs';
@Injectable()
......@@ -35,7 +35,7 @@ export class HeaderService {
lastname: data.lastname,
entities: data.entities,
groups: data.groups,
privileges: data.privileges
privileges: data.privileges[0] === 'ALL_PRIVILEGES' ? this.user.privileges : data.privileges
}
})
).subscribe();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment