Skip to content
Snippets Groups Projects
Commit eda24515 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline_#18075_fix__private_profil_and_rewrite_url fix test failures

parent 860b47d3
Branches
Tags
5 merge requests!715Master,!688Master,!687Hotline master,!683backport fix to master,!671Hotline #18075 fix private profil and rewrite url
......@@ -105,7 +105,7 @@ class ZendAfi_Controller_Plugin_DefineURLs extends Zend_Controller_Plugin_Abstra
if (!$profil->isPublic()) {
$auth = ZendAfi_Auth::getInstance();
if (!$auth->hasIdentity() or $auth->getIdentity()->ROLE_LEVEL < $profil->getAccessLevel()) {
if ($module != 'admin') {
if ($module != 'admin' && !$auth->hasIdentity()) {
$redirect = '?redirect=' . urlencode('/index/index/id_profil/' . $profil->getId());
return $this->getResponse()->setRedirect(BASE_URL . '/auth/login/id_profil/1' . $redirect);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment