Fix user level for request status
parent
61ccd6eeb9
commit
48728321d9
|
@ -25,7 +25,7 @@ export class LoginService {
|
||||||
if (user && user.token) {
|
if (user && user.token) {
|
||||||
// store user details and jwt token in local storage to keep user logged in between page refreshes
|
// store user details and jwt token in local storage to keep user logged in between page refreshes
|
||||||
localStorage.setItem('currentUser', JSON.stringify(user));
|
localStorage.setItem('currentUser', JSON.stringify(user));
|
||||||
if (user.permission >= 3) {
|
if (user.permission >= 2) {
|
||||||
const fraction = user.squad.fraction;
|
const fraction = user.squad.fraction;
|
||||||
this.awardingService.checkUnprocessedAwards(fraction);
|
this.awardingService.checkUnprocessedAwards(fraction);
|
||||||
this.promotionService.checkUnconfirmedPromotions(fraction);
|
this.promotionService.checkUnconfirmedPromotions(fraction);
|
||||||
|
|
Loading…
Reference in New Issue