htaccess c'est vraiment de la merde
This commit is contained in:
parent
5638c0712d
commit
04d7d564f1
5 changed files with 15 additions and 14 deletions
|
|
@ -124,8 +124,8 @@
|
|||
*/
|
||||
public function addedit_project() {
|
||||
if (!isset($_SESSION['user'])){
|
||||
header("Location:index.php?ctrl=error&action=error_403");
|
||||
exit;
|
||||
$error = new \Controllers\ErrorCtrl();
|
||||
return $error->error_403();
|
||||
}
|
||||
|
||||
$objProject = new Project;
|
||||
|
|
@ -135,8 +135,8 @@
|
|||
if (isset($_GET['id'])){
|
||||
$arrProject = $objProjectModel->findOne($_GET['id']);
|
||||
if($_SESSION['user']['user_id'] != $arrProject['project_user_id']){
|
||||
header("Location:index.php?ctrl=error&action=error_403");
|
||||
exit;
|
||||
$error = new \Controllers\ErrorCtrl();
|
||||
return $error->error_403();
|
||||
}
|
||||
$objProject->hydrate($arrProject);
|
||||
$this->_arrData['arrImages'] = $objProjectModel->getImagesByProjectId($objProject->getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue