fix polis
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user