|  | @@ -20,18 +20,16 @@ exports.cekSatuDataLaporan = async (
 | 
	
		
			
				|  |  |          // ]
 | 
	
		
			
				|  |  |        } else if (!where.delegasi) {
 | 
	
		
			
				|  |  |          w.role_data = 'dikti'
 | 
	
		
			
				|  |  | -      } else if (!where.delegasi) {
 | 
	
		
			
				|  |  | -        w['$or'] = [
 | 
	
		
			
				|  |  | -          { role_asal: 'dikti' },
 | 
	
		
			
				|  |  | -          { role_asal: 'lldikti', role_data: 'dikti' },
 | 
	
		
			
				|  |  | -        ]
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          w.role_data = 'lldikti'
 | 
	
		
			
				|  |  |          w.role_asal = 'dikti'
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        break
 | 
	
		
			
				|  |  |      case 2021:
 | 
	
		
			
				|  |  | -      if (!where.delegasi) {
 | 
	
		
			
				|  |  | +      if (where.all) {
 | 
	
		
			
				|  |  | +        w.role_asal = 'lldikti'
 | 
	
		
			
				|  |  | +        w['pt.pembina.id'] = user.lembaga.id
 | 
	
		
			
				|  |  | +      } else if (!where.delegasi) {
 | 
	
		
			
				|  |  |          w.role_data = 'lldikti'
 | 
	
		
			
				|  |  |          w['pt.pembina.id'] = user.lembaga.id
 | 
	
		
			
				|  |  |        } else {
 | 
	
	
		
			
				|  | @@ -79,7 +77,10 @@ exports.cekBanyakDataLaporan = async (user, where = { delegasi: false }) => {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        break
 | 
	
		
			
				|  |  |      case 2021:
 | 
	
		
			
				|  |  | -      if (!where.delegasi) {
 | 
	
		
			
				|  |  | +      if (where.all) {
 | 
	
		
			
				|  |  | +        w.role_asal = 'lldikti'
 | 
	
		
			
				|  |  | +        w['pt.pembina.id'] = user.lembaga.id
 | 
	
		
			
				|  |  | +      } else if (!where.delegasi) {
 | 
	
		
			
				|  |  |          w.role_data = 'lldikti'
 | 
	
		
			
				|  |  |          w['pt.pembina.id'] = user.lembaga.id
 | 
	
		
			
				|  |  |        } else {
 |