mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-01-07 13:42:22 +00:00
Correction d'un bug empêchant l'affichage des autorisations
This commit is contained in:
parent
a2d602cd9e
commit
467892fa35
@ -137,12 +137,14 @@ class MyTeam
|
|||||||
|
|
||||||
public function updateTeam()
|
public function updateTeam()
|
||||||
{
|
{
|
||||||
global $URL_BASE;
|
global $DB, $URL_BASE;
|
||||||
|
|
||||||
$this->team->setName($this->name);
|
$this->team->setName($this->name);
|
||||||
$this->team->setTrigram($this->trigram);
|
$this->team->setTrigram($this->trigram);
|
||||||
$this->team->setProblem($this->problem);
|
$this->team->setProblem($this->problem);
|
||||||
|
|
||||||
|
$DB->exec("UPDATE `teams` SET `problem` = " . $this->problem . " WHERE `id` = " . $this->team->getId() . ";");
|
||||||
|
|
||||||
header("Location: $URL_BASE/mon-equipe");
|
header("Location: $URL_BASE/mon-equipe");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ if ($file !== null) {
|
|||||||
$trigram = $team->getTrigram();
|
$trigram = $team->getTrigram();
|
||||||
|
|
||||||
$user = User::fromId($file->getUserId());
|
$user = User::fromId($file->getUserId());
|
||||||
$type = $file->getType();
|
|
||||||
|
|
||||||
if (($_SESSION["role"] == Role::PARTICIPANT || $_SESSION["role"] == Role::ENCADRANT) && $user->getId() != $_SESSION["user_id"])
|
if (($_SESSION["role"] == Role::PARTICIPANT || $_SESSION["role"] == Role::ENCADRANT) && $user->getId() != $_SESSION["user_id"])
|
||||||
require_once "server_files/403.php";
|
require_once "server_files/403.php";
|
||||||
|
Loading…
Reference in New Issue
Block a user