@@ 697-700 (lines=4) @@ | ||
694 | */ |
|
695 | public function setLabels(Request $request, $project_key, $id) |
|
696 | { |
|
697 | if (!$this->isPermissionAllowed($project_key, 'edit_issue')) { |
|
698 | return response()->json(['ecode' => -10002, 'emsg' => 'permission denied.']); |
|
699 | } |
|
700 | ||
701 | $labels = $request->input('labels'); |
|
702 | if (!isset($labels)) { |
|
703 | return $this->show($project_key, $id); |
|
@@ 835-838 (lines=4) @@ | ||
832 | */ |
|
833 | public function update(Request $request, $project_key, $id) |
|
834 | { |
|
835 | if (!$this->isPermissionAllowed($project_key, 'edit_issue') && !$this->isPermissionAllowed($project_key, 'exec_workflow')) { |
|
836 | return response()->json(['ecode' => -10002, 'emsg' => 'permission denied.']); |
|
837 | } |
|
838 | ||
839 | if (!$request->all()) { |
|
840 | return $this->show($project_key, $id); |
|
841 | } |
|
@@ 2886-2889 (lines=4) @@ | ||
2883 | */ |
|
2884 | public function batchUpdate($project_key, $ids, $values) |
|
2885 | { |
|
2886 | if (!$this->isPermissionAllowed($project_key, 'edit_issue')) { |
|
2887 | return response()->json(['ecode' => -10002, 'emsg' => 'permission denied.']); |
|
2888 | } |
|
2889 | ||
2890 | $schemas = []; |
|
2891 | ||
2892 | $updValues = []; |