aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-portal/www/policy
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-portal/www/policy')
-rw-r--r--mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php
index 6addac83..85732e67 100644
--- a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php
+++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php
@@ -6,7 +6,9 @@ if (_RIGHTS_OK !== true) die();
$hirId = readVariable($_POST['hirId'],'id',null);
if ($hirId=='') $hirId = readVariable($_GET['hirId'],'id',null);
$action = readVariable($_POST['action'],'strictstring',array(null,'save',''));
- if ($hirId>0 && isOwner($hirId)===false) $_SESSION['alert'][] = 'page:not_owner';
+ if (__PORTAL_CODE=='vmg' && $hirId>0 && isOwner($hirId)===false) {
+ $_SESSION['alert'][] = 'page:not_owner';
+ }
if ($action=='save' && (__HIREKADMIN || $hirId=='' || isOwner($hirId))) {
global $LANGUAGES;
@@ -32,13 +34,11 @@ if (_RIGHTS_OK !== true) die();
$r = saveHir($DATA);
if ($hirId=='') $hirId=$r;
}
- if ($hirId!='' && is_numeric($hirId) && __HIREKADMIN || isOwner($hirId))
+ if ($hirId!='' && is_numeric($hirId) && (__HIREKADMIN===true || isOwner($hirId)===true))
$HIREK = getHirek(array('id'=>$hirId));
elseif ($hirId!='')
$_SESSION['alert'][] = 'page:not_owner';
$ADAT['kategoriak'] = getKategoriak();
-
-
?>