Browse Source

role 2024 ubah jadi 2071

andi 2 months ago
parent
commit
38b8eb8b54
45 changed files with 63 additions and 63 deletions
  1. 1 1
      components/Banding/Riwayat.js
  2. 1 1
      components/Bypass/TableBypass.js
  3. 1 1
      components/DocPerbaikan/Riwayat.js
  4. 2 2
      components/Extras/calendar.view.js
  5. 1 1
      components/Keberatan/Riwayat.js
  6. 4 4
      components/Layout/Sidebar.js
  7. 1 1
      components/Main/DetailLaporan.js
  8. 1 1
      components/Main/DetailSanksi.js
  9. 1 1
      components/Main/PermohonanPT.js
  10. 1 1
      components/NaikSanksi/DetailSanksi.js
  11. 1 1
      components/NaikSanksi/InputTanggal.js
  12. 1 1
      components/NaikSanksi/TableRiwayat.js
  13. 1 1
      components/PT/CabutSanksi/Riwayat.js
  14. 1 1
      components/Pelaporan/InputData.js
  15. 2 2
      components/PelaporanTuntas/DetailLaporan.js
  16. 1 1
      components/PelaporanTuntas/DetailSanksi.js
  17. 1 1
      components/Pemeriksaan/DetailLaporan.js
  18. 2 2
      components/Pemeriksaan/InputEvaluasi.js
  19. 1 1
      components/Pemeriksaan/TableRiwayat.js
  20. 1 1
      components/PencabutanSanksi/Riwayat.js
  21. 1 1
      components/PencabutanSanksi/RiwayatPerbaikan.js
  22. 1 1
      components/Penjadwalan/DetailLaporan.js
  23. 1 1
      components/PerpanjanganSanksi/DetailSanksi.js
  24. 1 1
      components/PerpanjanganSanksi/InputTanggal.js
  25. 1 1
      components/PerpanjanganSanksi/Riwayat.js
  26. 1 1
      components/RekomendasiDelegasi/DetailSanksi.js
  27. 1 1
      components/RekomendasiDelegasi/InputRekomendasi.js
  28. 2 2
      components/RekomendasiDelegasi/TableRiwayat.js
  29. 1 1
      components/Sanksi/BeritaAcara.js
  30. 2 2
      components/Sanksi/DetailSanksi.js
  31. 1 1
      components/Sanksi/Modul.js
  32. 1 1
      components/Sanksi/Redudansi.js
  33. 1 1
      components/TurunSanksi/DetailSanksi.js
  34. 2 2
      components/TurunSanksi/InputTanggal.js
  35. 1 1
      components/TurunSanksi/TableRiwayat.js
  36. 1 1
      pages/app/banding/detail.js
  37. 1 1
      pages/app/keberatan/detail.js
  38. 2 2
      pages/app/pelaporan/index.js
  39. 2 2
      pages/app/pemeriksaan/index.js
  40. 1 1
      pages/app/pencabutan-sanksi/detail.js
  41. 2 2
      pages/app/penjadwalan/index.js
  42. 2 2
      pages/app/sanksi/index.js
  43. 5 5
      pages/app/sanksi/proses.js
  44. 2 2
      pages/app/tuntas/index.js
  45. 1 1
      pages/app/verifikasi/index.js

+ 1 - 1
components/Banding/Riwayat.js

@@ -37,7 +37,7 @@ function Riwayat({ data, role }) {
 										{data.dokumen.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/Bypass/TableBypass.js

@@ -30,7 +30,7 @@ function TableBypass({ listData, to, linkName, role }) {
                 <ModalFooter>
 
                     <Button color className="btn-login" onClick={async () => {
-                        if (role === 2024) {
+                        if (role === 2071) {
                             Swal.fire({
                                 icon: 'error',
                                 title: 'Oops...',

+ 1 - 1
components/DocPerbaikan/Riwayat.js

@@ -38,7 +38,7 @@ function Riwayat({ data, role }) {
 											{value.dokumen.map((e) => (
 												<>
 													<em className="fa-lg far fa-file-code"></em>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 2 - 2
components/Extras/calendar.view.js

@@ -201,7 +201,7 @@ class Calendar extends Component {
 	}
 
 	handleEventCalendar = async (data) => {
-		if (this.props.user.role.id === 2024) {
+		if (this.props.user.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -269,7 +269,7 @@ class Calendar extends Component {
 	}
 
 	handleSimpan = async (value) => {
-		if (this.props.user.role.id === 2024) {
+		if (this.props.user.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 1 - 1
components/Keberatan/Riwayat.js

@@ -40,7 +40,7 @@ function Riwayat({ data, role }) {
 										{data.dokumen.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 4 - 4
components/Layout/Sidebar.js

@@ -152,16 +152,16 @@ class Sidebar extends Component {
 		// const user = await getUser();
 		const user = this.props.user;
 		if (ENV === "production") {
-			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "2A080F42-AE7F-407B-976E-DE5FA87BD277" || user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2024 ? MenuReadOnly : Menu;
+			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "2A080F42-AE7F-407B-976E-DE5FA87BD277" || user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2071 ? MenuReadOnly : Menu;
 		}
 		if (ENV === "development") {
-			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2024 ? MenuReadOnly : MenuPT;
+			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2071 ? MenuReadOnly : MenuPT;
 		}
 		if (ENV === "local") {
-			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2024 ? MenuReadOnly : MenuPT;
+			this.menu = user.role.id === 2022 ? MenuPT : user.user_id === "28DB23AE-2976-47E0-9410-241A11EE1F88" ? MenuBypass : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2071 ? MenuReadOnly : MenuPT;
 		}
 		// if (ENV === "development") {
-		// 	this.menu = user.role.id === 2022 ? MenuPT : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2024 ? MenuReadOnly : Menu;
+		// 	this.menu = user.role.id === 2022 ? MenuPT : user.role.id === 2021 ? MenuLLDIKTI : user.role.id === 2071 ? MenuReadOnly : Menu;
 		// }
 
 		// this.menu = user.user_id === "2A080F42-AE7F-407B-976E-DE5FA87BD277" ? MenuBypass : user.role.id === 2022 ? MenuPT : user.role.id === 2021 ? MenuLLDIKTI : Menu;

+ 1 - 1
components/Main/DetailLaporan.js

@@ -159,7 +159,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a> :

+ 1 - 1
components/Main/DetailSanksi.js

@@ -78,7 +78,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/Main/PermohonanPT.js

@@ -28,7 +28,7 @@ function PermohonanPT({ data, title = null, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/NaikSanksi/DetailSanksi.js

@@ -123,7 +123,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 													<em className="fa-lg far fa-file-code"></em>
 												</td>
 												<td>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
components/NaikSanksi/InputTanggal.js

@@ -160,7 +160,7 @@ class InputTanggal extends Component {
     };
 
     done = async (data) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 1 - 1
components/NaikSanksi/TableRiwayat.js

@@ -50,7 +50,7 @@ function TableRiwayat({ data, perbaikan, role }) {
 										{value.dokumen.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/PT/CabutSanksi/Riwayat.js

@@ -40,7 +40,7 @@ function Riwayat({ data, role }) {
 										{data.dokumen?.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/Pelaporan/InputData.js

@@ -146,7 +146,7 @@ export class InputData extends Component {
 		await createLog(token, { aktivitas: "Mengakses halaman Pelaporan", menu: "Pelaporan", _csrf: _csrf });
 	}
 	onSubmit = async (data) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
components/PelaporanTuntas/DetailLaporan.js

@@ -149,7 +149,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>
@@ -203,7 +203,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false, role }) {
 													<em className="fa-lg far fa-file-code"></em>
 												</td>
 												<td>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
components/PelaporanTuntas/DetailSanksi.js

@@ -75,7 +75,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/Pemeriksaan/DetailLaporan.js

@@ -158,7 +158,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 											<td>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 2 - 2
components/Pemeriksaan/InputEvaluasi.js

@@ -156,7 +156,7 @@ class InputEvaluasi extends Component {
 	};
 
 	onSubmit = async (data, { resetForm }) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -219,7 +219,7 @@ class InputEvaluasi extends Component {
 	}
 
 	handleTutupLaporan = async (data, value) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 1 - 1
components/Pemeriksaan/TableRiwayat.js

@@ -33,7 +33,7 @@ function TableRiwayat({ data, role }) {
 								{e.dokumen.map((e, index) => (
 									<>
 										<em key="index" className="fa-lg far fa-file-code"></em>
-										{role === 2024 ?
+										{role === 2071 ?
 											<a className="text-muted" onClick={handleOpenAlert} >
 												{e.judul}
 											</a>

+ 1 - 1
components/PencabutanSanksi/Riwayat.js

@@ -45,7 +45,7 @@ function Riwayat({ data, role }) {
 										{data.dokumen?.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/PencabutanSanksi/RiwayatPerbaikan.js

@@ -40,7 +40,7 @@ function RiwayatPerbaikan({ data, role }) {
 											{value.dokumen.map((e) => (
 												<>
 													<em className="fa-lg far fa-file-code"></em>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
components/Penjadwalan/DetailLaporan.js

@@ -158,7 +158,7 @@ function DetailLaporan({ data, noTitle = false, noStatus = false, role }) {
 												<em className="fa-lg far fa-file-code"></em>
 											</td>
 
-											<td>{role === 2024 ?
+											<td>{role === 2071 ?
 												<a className="text-muted" onClick={handleOpenAlert}>
 													{e.judul}
 												</a>

+ 1 - 1
components/PerpanjanganSanksi/DetailSanksi.js

@@ -142,7 +142,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 													<em className="fa-lg far fa-file-code"></em>
 												</td>
 												<td>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
components/PerpanjanganSanksi/InputTanggal.js

@@ -141,7 +141,7 @@ class InputTanggal extends Component {
 
 
     handelSimpan = async (data) => {
-        if (this.props?.user?.role.id === 2024) {
+        if (this.props?.user?.role.id === 2071) {
             Swal.fire({
                 icon: 'error',
                 title: 'Oops...',

+ 1 - 1
components/PerpanjanganSanksi/Riwayat.js

@@ -41,7 +41,7 @@ function Riwayat({ data, role }) {
 										{data.dokumen?.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/RekomendasiDelegasi/DetailSanksi.js

@@ -79,7 +79,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 													<em className="fa-lg far fa-file-code"></em>
 												</td>
 												<td>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
components/RekomendasiDelegasi/InputRekomendasi.js

@@ -123,7 +123,7 @@ class InputRekomendasi extends Component {
 
 
 	handelSimpan = async () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
components/RekomendasiDelegasi/TableRiwayat.js

@@ -36,7 +36,7 @@ function TableRiwayat({ data, perbaikan, role }) {
 							{data.dokumen.map((e, index) => (
 								<>
 									<em className="fa-lg far fa-file-code"></em>
-									{role === 2024 ?
+									{role === 2071 ?
 										<a className="text-muted" onClick={handleOpenAlert}>
 											{e.judul}
 										</a>
@@ -56,7 +56,7 @@ function TableRiwayat({ data, perbaikan, role }) {
 										{value.dokumen.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 													<a className="text-muted" onClick={handleOpenAlert}>
 														{e.judul}
 													</a>

+ 1 - 1
components/Sanksi/BeritaAcara.js

@@ -293,7 +293,7 @@ class BeritaAcara extends Component {
                 </Modal>
                 <div className=' content-heading border-radius-login'>
                     <span className="btn-radius">
-                        {this.props.role === 2024 ?
+                        {this.props.role === 2071 ?
                             <Button color className="btn-labeled-4" onClick={this.handleOpenAlert}>
                                 <h4 className="p-0 mt-2">Print dan Download</h4>
                             </Button> :

+ 2 - 2
components/Sanksi/DetailSanksi.js

@@ -104,7 +104,7 @@ class DetailSanksi extends Component {
 														<em className="fa-lg far fa-file-code"></em>
 													</td>
 													<td>
-														{this.props?.user?.role.id === 2024 ?
+														{this.props?.user?.role.id === 2071 ?
 															<a className="text-muted" onClick={this.handleOpenAlert} >
 																{e.judul}
 															</a>
@@ -128,7 +128,7 @@ class DetailSanksi extends Component {
 							<Col md="4">Dokumen Acara Pleno:</Col>
 							<Col md="8">
 								<div>
-									{this.props?.user?.role.id === 2024 ?
+									{this.props?.user?.role.id === 2071 ?
 										<Button color className="btn-labeled-4 mt-0" onClick={this.handleOpenAlert}>
 											<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
 										</Button>

+ 1 - 1
components/Sanksi/Modul.js

@@ -53,7 +53,7 @@ class Modul extends Component {
             <div>
                 <div className=' content-heading border-radius-login'>
                     <span className="btn-radius">
-                        {this.props.role === 2024 ?
+                        {this.props.role === 2071 ?
                             <Button color className="btn-labeled-4" onClick={this.handleOpenAlert}>
                                 <h4 className="p-0 mt-2">Print dan Download</h4>
                             </Button> :

+ 1 - 1
components/Sanksi/Redudansi.js

@@ -95,7 +95,7 @@ export class Redudansi extends Component {
         await createLog(token, { aktivitas: `Berhasil menutup laporan, id: ${this.props.id}`, _csrf: _csrf, menu: "Sanksi" });
     }
     handleTutupLaporan = async (data, value) => {
-        if (this.props.role === 2024) {
+        if (this.props.role === 2071) {
             Swal.fire({
                 icon: 'error',
                 title: 'Oops...',

+ 1 - 1
components/TurunSanksi/DetailSanksi.js

@@ -122,7 +122,7 @@ function DetailSanksi({ data, noTitle = false, role }) {
 													<em className="fa-lg far fa-file-code"></em>
 												</td>
 												<td>
-													{role === 2024 ?
+													{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 2 - 2
components/TurunSanksi/InputTanggal.js

@@ -156,7 +156,7 @@ class InputTanggal extends Component {
         this.setState({ tmtCheck: !this.state.tmtCheck });
     };
     done = async (data) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -197,7 +197,7 @@ class InputTanggal extends Component {
 
 	}
     ubahSanksi = async (data) => {
-        if (this.props?.user?.role.id === 2024) {
+        if (this.props?.user?.role.id === 2071) {
             Swal.fire({
                 icon: 'error',
                 title: 'Oops...',

+ 1 - 1
components/TurunSanksi/TableRiwayat.js

@@ -50,7 +50,7 @@ function TableRiwayat({ data, perbaikan , role}) {
 										{value.dokumen.map((e) => (
 											<>
 												<em className="fa-lg far fa-file-code"></em>
-												{role === 2024 ?
+												{role === 2071 ?
 														<a className="text-muted" onClick={handleOpenAlert}>
 															{e.judul}
 														</a>

+ 1 - 1
pages/app/banding/detail.js

@@ -168,7 +168,7 @@ class JawabanBanding extends Component {
 
 
 	handelSimpan = async () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 1 - 1
pages/app/keberatan/detail.js

@@ -177,7 +177,7 @@ class DetailKeberatan extends Component {
 	};
 
 	handelSimpan = async () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
pages/app/pelaporan/index.js

@@ -64,7 +64,7 @@ class Pelaporan extends Component {
 		if (prevState.graph !== this.state.graph) return true;
 	};
 	excelMenu = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -90,7 +90,7 @@ class Pelaporan extends Component {
 		}
 	};
 	excelSemua = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
pages/app/pemeriksaan/index.js

@@ -48,7 +48,7 @@ class Pemeriksaan extends Component {
 
 
 	excelMenu = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -75,7 +75,7 @@ class Pemeriksaan extends Component {
 	};
 
 	excelSemua = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 1 - 1
pages/app/pencabutan-sanksi/detail.js

@@ -138,7 +138,7 @@ class JawabanPencabutanSanksi extends Component {
 	};
 
 	handleSimpan = async () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
pages/app/penjadwalan/index.js

@@ -46,7 +46,7 @@ class Penjadwalan extends Component {
 		if (prevState.graph !== this.state.graph) return true;
 	};
 	excelMenu = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -72,7 +72,7 @@ class Penjadwalan extends Component {
 		}
 	};
 	excelSemua = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 2 - 2
pages/app/sanksi/index.js

@@ -46,7 +46,7 @@ class Sanksi extends Component {
 		if (prevState.graph !== this.state.graph) return true;
 	};
 	excelMenu = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -72,7 +72,7 @@ class Sanksi extends Component {
 		}
 	};
 	excelSemua = () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',

+ 5 - 5
pages/app/sanksi/proses.js

@@ -73,7 +73,7 @@ class ProsesSanksi extends Component {
 
 
 	handleAutoSave = async (data, activeStep) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			""
 		} else {
 			const { query, token } = this.props;
@@ -85,7 +85,7 @@ class ProsesSanksi extends Component {
 	}
 
 	done = async () => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -212,7 +212,7 @@ class ProsesSanksi extends Component {
 		await createLog(token, { aktivitas: `Berhasil Delegasi Laporan, id: ${id}`, _csrf: _csrf, menu: "Sanksi" });
 	}
 	handleDelegasi = async (data) => {
-		if (this.props?.user?.role.id === 2024) {
+		if (this.props?.user?.role.id === 2071) {
 			Swal.fire({
 				icon: 'error',
 				title: 'Oops...',
@@ -675,7 +675,7 @@ class ProsesSanksi extends Component {
 													<div style={{ display: "none" }}>
 														<ComponentToPrint ref={el => (this.componentRef = el)} query={this.props.query} handleAutoSave={this.handleAutoSave} dataPelanggaran={this.state.dataPelanggaran} setDataSuratBA={this.setDataSuratBA} dataLaporan={pelaporan} dataSuratBA={dataSuratBA} />
 													</div>
-													{this.props?.user?.role.id === 2024 ?
+													{this.props?.user?.role.id === 2071 ?
 														<Button color className="btn-labeled-4 mt-0" onClick={this.handleOpenAlert}>
 															<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
 														</Button>
@@ -713,7 +713,7 @@ class ProsesSanksi extends Component {
 												<FormGroup row>
 													<Col md="4">Surat Berita Acara:</Col>
 													<Col md="8">
-														{this.props.user?.role?.id === 2024 ?
+														{this.props.user?.role?.id === 2071 ?
 															<Button color className="btn-labeled-4 mt-0" onClick={this.handleOpenAlert}>
 																<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
 															</Button>

+ 2 - 2
pages/app/tuntas/index.js

@@ -71,7 +71,7 @@ class PelaporanTuntas extends Component {
         Router.push(url);
     };
     excelMenu = () => {
-        if (this.props?.user?.role.id === 2024) {
+        if (this.props?.user?.role.id === 2071) {
             swal.fire({
                 icon: 'error',
                 title: 'Oops...',
@@ -96,7 +96,7 @@ class PelaporanTuntas extends Component {
         }
     };
     excelSemua = () => {
-        if (this.props?.user?.role.id === 2024) {
+        if (this.props?.user?.role.id === 2071) {
             swal.fire({
                 icon: 'error',
                 title: 'Oops...',

+ 1 - 1
pages/app/verifikasi/index.js

@@ -71,7 +71,7 @@ class Verifikasi extends React.Component {
         this.setState({ pt_id: selected_PT.value });
     };
     onSubmit = async () => {
-        if (this.props?.user?.role.id === 2024) {
+        if (this.props?.user?.role.id === 2071) {
             Swal.fire({
                 icon: 'error',
                 title: 'Oops...',