This commit is contained in:
Julio Cesar Laura Avendaño
2016-03-24 10:38:18 -04:00
parent f78cd1eb62
commit ca4ab6f3cf
2 changed files with 2 additions and 11 deletions

View File

@@ -149,8 +149,8 @@ class Designer extends Controller
if ($user->checkPermission($row['USER_ID'], 'PM_FACTORY') || $proReadOnly == 'true') { if ($user->checkPermission($row['USER_ID'], 'PM_FACTORY') || $proReadOnly == 'true') {
$this->setView('designer/index'); $this->setView('designer/index');
} else { } else {
$this->setVar('accessDenied', G::LoadTranslation('ID_ACCESS_DENIED')); G::header('Location: /errors/error403.php');
$this->setView('designer/accessDenied'); die();
} }
} }

View File

@@ -1,9 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div><h1>{$accessDenied}</h1></div>
</body>
</html>