fix ./verify
continuous-integration/drone/push Build is passing Details

shareTactic
Vivien DUFOUR 1 year ago
parent 8315b79ba1
commit c383432b64

@ -93,7 +93,7 @@ class APITacticController {
"main_color" => [],
"second_color" => [],
], function (HttpRequest $request) use ($tacticId, $account) {
if ($this->canShareTactic($tacticId, $account)) {
if ($this->canShareTactic($tacticId, $account)->getCode() == HttpCodes::OK) {
if ($this->teamModel->canShareTacticToTeam($request["id"], $account->getUser()->getEmail())) {
return HttpResponse::fromCode(HttpCodes::OK);
}
@ -144,8 +144,8 @@ class APITacticController {
"id" => [],
"name" => [],
"picture" => [],
"mainColor" => [],
"secondColor" => [],
"main_color" => [],
"second_color" => [],
], function (HttpRequest $request) use ($tacticId, $account) {
if ($this->teamModel->canShareTacticToTeam($request["id"], $account->getUser()->getEmail())) {
$this->teamModel->unshareTacticToTeam($tacticId, $request["id"]);

Loading…
Cancel
Save