Commit fe5ca450 authored by Muhamad's avatar Muhamad

perm

parent 4da68b7f
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
</script> </script>
{% endfor %} {% endfor %}
<script> <script>
console.log(list_perm)
if (list_perm.indexOf('add_roads') >= 0 === false) { if (list_perm.indexOf('add_roads') >= 0 === false) {
$(".btn_create_jalan").remove(); $(".btn_create_jalan").remove();
} }
...@@ -22,6 +21,4 @@ ...@@ -22,6 +21,4 @@
if (list_perm.indexOf('add_roads') >= 0 === false && list_perm.indexOf('add_bangunan') >= 0 === false && list_perm.indexOf('add_kantor_administrasi') >= 0 === false || list_perm.indexOf('add_layanan_kesehatan') >= 0 === false || list_perm.indexOf('add_puskesmas') >= 0 === false || list_perm.indexOf('add_rumah_sakit') >= 0 === false || list_perm.indexOf('add_sarana_ibadah') >= 0 === false || list_perm.indexOf('add_sarana_pendidikan') >= 0 === false || list_perm.indexOf('add_stasiun') >= 0 === false || list_perm.indexOf('add_terminal_bus') >= 0 === false || list_perm.indexOf('add_cagar_budaya') >= 0 === false || list_perm.indexOf('add_gardu_listrik') >= 0 === false) { if (list_perm.indexOf('add_roads') >= 0 === false && list_perm.indexOf('add_bangunan') >= 0 === false && list_perm.indexOf('add_kantor_administrasi') >= 0 === false || list_perm.indexOf('add_layanan_kesehatan') >= 0 === false || list_perm.indexOf('add_puskesmas') >= 0 === false || list_perm.indexOf('add_rumah_sakit') >= 0 === false || list_perm.indexOf('add_sarana_ibadah') >= 0 === false || list_perm.indexOf('add_sarana_pendidikan') >= 0 === false || list_perm.indexOf('add_stasiun') >= 0 === false || list_perm.indexOf('add_terminal_bus') >= 0 === false || list_perm.indexOf('add_cagar_budaya') >= 0 === false || list_perm.indexOf('add_gardu_listrik') >= 0 === false) {
$("#modal_option_create").remove(); $("#modal_option_create").remove();
} }
alert(list_perm.indexOf('change_rumah_sakit') >= 0)
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment