fix polis

This commit is contained in:
fifi97
2021-07-15 04:38:12 +08:00
parent 68b2cd63cc
commit f7b26a0c47
11 changed files with 81 additions and 29 deletions
+10 -5
View File
@@ -561,7 +561,7 @@
channel.bind('my-kelulusan', function(data) {
if(data.norujukan == norujukan && data.siri == siricreated)
if(data.norujukan == norujukan && data.siri == siricreated && data.teller == teller)
{
if(data.kelulusan == 'lulus')
{
@@ -1203,10 +1203,12 @@
encrypted: true
});
let teller = "{{ Auth::user()->name }}";
var channel = pusher.subscribe('notice-ubahhapus');
channel.bind('my-ubahhapus', function(data) {
if(data.norujukan == norujukan)
if(data.norujukan == norujukan && data.teller == teller)
{
if(data.kelulusan == 'lulus')
{
@@ -1416,10 +1418,12 @@
encrypted: true
});
let teller = "{{ Auth::user()->name }}";
var channel = pusher.subscribe('notice-ubahhapus');
channel.bind('my-ubahhapus', function(data) {
if(data.norujukan == ubahid)
if(data.norujukan == ubahid && data.teller == teller)
{
if(data.kelulusan == 'lulus')
{
@@ -1565,6 +1569,8 @@
}
});
let teller = "{{ Auth::user()->name }}";
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
cluster: 'ap1',
encrypted: true
@@ -1573,7 +1579,7 @@
var channel = pusher.subscribe('notice-ubahhapus');
channel.bind('my-ubahhapus', function(data) {
if(data.norujukan == id)
if(data.norujukan == id && data.teller == teller)
{
if(data.kelulusan == 'lulus')
{
@@ -1583,7 +1589,6 @@
title: 'Telah Disahkan'
}).then(function(){
let teller = "{{ Auth::user()->name }}";
if($("input[name='options']:checked").val() == 'belum_tebus'){
$.ajax({