Skip to content
Snippets Groups Projects
Commit 53226694 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with my profile if not admin

parent 649692ab
No related branches found
No related tags found
No related merge requests found
......@@ -1373,7 +1373,11 @@ class core_tools extends functions
$this->loadDefaultPage();
}
} elseif(isset($_GET['admin']) && !empty($_GET['admin'])) {
if (!isset($_SESSION['user']['services']['admin'])) {
if (
!isset($_SESSION['user']['services']['admin'])
&& $_GET['page'] <> 'modify_user'
&& $_GET['page'] <> 'user_modif'
) {
$this->loadDefaultPage();
} else {
// Page is defined the admin directory of the application
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment