Skip to content

Commit

Permalink
fix(misc): (un)publish
Browse files Browse the repository at this point in the history
  • Loading branch information
agilare committed Feb 28, 2023
1 parent 944b97d commit dd1acbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 7 additions & 8 deletions evenement-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

require_once("app/bootstrap.php");

if (!$videur->checkGroup(8))
{
use Ladecadanse\UserLevel;

if (!$videur->checkGroup(UserLevel::ACTOR)) {
header("Location: index.php"); die();
}

Expand All @@ -23,8 +24,7 @@
if (!empty($val_even['flyer']))
{
unlink($rep_images_even.$val_even['flyer']);
unlink($rep_images_even."s_".$val_even['flyer']);
unlink($rep_images_even."t_".$val_even['flyer']);
unlink($rep_images_even . "s_" . $val_even['flyer']);
}

if (!empty($val_even['image']))
Expand Down Expand Up @@ -58,11 +58,10 @@

$val_even = $connector->fetchArray($req_im);

if (!empty($val_even) &&
if (!empty($val_even) &&
(
(isset($_SESSION['Sgroupe']) && ($_SESSION['Sgroupe'] <= 6
|| $_SESSION['SidPersonne'] == $val_even['idPersonne'])
)
(isset($_SESSION['Sgroupe']) && ($_SESSION['Sgroupe'] <= UserLevel::AUTHOR || (isset($_SESSION['SidPersonne']) && $_SESSION['SidPersonne'] == $val_even['idPersonne']))
)
|| (isset($_SESSION['Saffiliation_lieu']) && !empty($val_even['idLieu']) && $val_even['idLieu'] == $_SESSION['Saffiliation_lieu'])
|| isset($_SESSION['SidPersonne']) && $authorization->isPersonneInEvenementByOrganisateur($_SESSION['SidPersonne'], $get['id'])
|| isset($_SESSION['SidPersonne']) && $authorization->isPersonneInLieuByOrganisateur($_SESSION['SidPersonne'], $val_even['idLieu']) ))
Expand Down
1 change: 1 addition & 0 deletions rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
$xml .= "<channel>";

$items = "";
$channel = '';

if ($get['type'] == "evenements_auj") {

Expand Down

0 comments on commit dd1acbb

Please sign in to comment.