@@ 96-101 (lines=6) @@ | ||
93 | $response['transition'] = $response->transition; |
|
94 | $response['permission'] = $response->permission; |
|
95 | $response['status'] = true; |
|
96 | }else{ |
|
97 | $response['workflow'] = ''; |
|
98 | $response['transition'] = ''; |
|
99 | $response['permission'] = ''; |
|
100 | $response['status'] = true; |
|
101 | } |
|
102 | ||
103 | return response()->json($response); |
|
104 | } |
|
@@ 122-127 (lines=6) @@ | ||
119 | $response['permission'] = $response->permission; |
|
120 | ||
121 | $response['status'] = true; |
|
122 | }else{ |
|
123 | $response['workflow'] = ''; |
|
124 | $response['transition'] = ''; |
|
125 | $response['permission'] = ''; |
|
126 | $response['status'] = true; |
|
127 | } |
|
128 | ||
129 | return response()->json($response); |
|
130 | } |