Browse Source

access creator only

pull/3/head
wahyu 1 year ago
parent
commit
66e72be3a2
  1. 4
      app/Http/Controllers/ProjectController.php

4
app/Http/Controllers/ProjectController.php

@ -229,7 +229,7 @@ class ProjectController extends Controller
$dataBuilder = $this->setUpPayload($payload, 'm_proyek');
$builder = $dataBuilder['builder'];
$countBuilder = $dataBuilder['count'];
// $builder->where("selfTable.created_by",$this->currentName);
$builder->where("selfTable.created_by",$this->currentName);
$dataGet = $builder->get();
$totalRecord = $countBuilder->count();
@ -276,7 +276,7 @@ class ProjectController extends Controller
'updated_at',
'updated_by'
)->orderBy('id', 'desc')
// ->where("created_by",$this->currentName)
->where("created_by",$this->currentName)
->get();
$countData = $data->count();

Loading…
Cancel
Save