Merge branch 'development' into 'devops-staging'
Development See merge request empatnusabangsa/ppob/ppob-backend!110
This commit is contained in:
commit
4408c21e85
|
@ -6,9 +6,10 @@ metadata:
|
|||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
traefik.ingress.kubernetes.io/router.middlewares: empatnusabangsa-production-redirect-https@kubernetescrd
|
||||
spec:
|
||||
rules:
|
||||
- host: "ppob-backend.k3s.bangun-kreatif.com"
|
||||
- host: "api.wndsolutions.id"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
|
@ -20,5 +21,5 @@ spec:
|
|||
number: 5000
|
||||
tls:
|
||||
- hosts:
|
||||
- "ppob-backend.k3s.bangun-kreatif.com"
|
||||
secretName: ppob-backend-k3s-bangun-kreatif-com-tls
|
||||
- "api.wndsolutions.id"
|
||||
secretName: api-wndsolutions-id-tls
|
||||
|
|
9
k8s/production/middleware.yaml
Normal file
9
k8s/production/middleware.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: redirect-https
|
||||
namespace: empatnusabangsa-production
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
|
@ -67,14 +67,20 @@ export class UsersService {
|
|||
|
||||
if (createUserDto.superior) {
|
||||
let approvalRole = '';
|
||||
if(superior.roles.name == 'Sales'){
|
||||
approvalRole = 'Supervisor';
|
||||
if (superior.superior) {
|
||||
if(superior.roles.name == 'Sales'){
|
||||
approvalRole = 'Supervisor';
|
||||
} else {
|
||||
approvalRole = 'Admin';
|
||||
}
|
||||
|
||||
userData.superior = superior;
|
||||
userData.status_approval = superior.superior.id;
|
||||
userData.is_active = false;
|
||||
} else {
|
||||
approvalRole = 'Admin';
|
||||
userData.superior = superior;
|
||||
userData.is_active = true;
|
||||
}
|
||||
userData.superior = superior;
|
||||
userData.status_approval = superior.superior.id;
|
||||
userData.is_active = false;
|
||||
} else {
|
||||
userData.superior = null;
|
||||
userData.partner = createUserDto.partner;
|
||||
|
|
Loading…
Reference in New Issue
Block a user