diff options
Diffstat (limited to 'mayor-orig/mayor-portal/www/policy')
5 files changed, 8 insertions, 1 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 ef18e58c..14d3040a 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 @@ -10,6 +10,10 @@ if (_RIGHTS_OK !== true) die(); // $_SESSION['alert'][] = 'page:not_owner'; // } + if (__HIREKADMIN===true) { + $_SESSION['mayorPortalSalt']=rand(); + } + if ($action=='save' && (__HIREKADMIN || $hirId=='' || isOwner($hirId))) { global $LANGUAGES; if (__HIREKADMIN === true) { diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir-pre.php new file mode 120000 index 00000000..6def6ce4 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir-pre.php @@ -0,0 +1 @@ +../../../../policy/public/portal/portal/hir-pre.php
\ No newline at end of file diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir.php new file mode 120000 index 00000000..c3dfc7ca --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/hir.php @@ -0,0 +1 @@ +../../../../policy/public/portal/portal/hir.php
\ No newline at end of file diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php index d8026e35..af1e3078 100644 --- a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php @@ -20,6 +20,7 @@ $ADAT['nevnap']['ma'] = getNevnap($honap,$nap); $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1); + define('_ACCESS_AS', _OTHER_ACCESS); if (in_array($AUTH[_POLICY]['backend'],array('mysql','ads')) && _POLICY=='private') { $ADAT['hirekAdmin'] = getGroupInfo('hirekadmin','private',array('withNewAccounts' => false)); $ADAT['vezetoseg'] = getGroupInfo('vezetoseg','private',array('withNewAccounts' => false)); diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php index 7e88f0f3..e48767d4 100644 --- a/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php @@ -2,7 +2,7 @@ global $OG; require_once('include/modules/portal/share/hirek.php'); - $hirId = readVariable($_GET['hirId'],id); + $hirId = readVariable($_GET['hirId'],'id'); if ($hirId>=1) { if (_POLICY=='private') $FILTER=array('id'=>$hirId); |