9262b09c4d
- Implemented roadmap.php for managing roadmap items with filtering options by quarter and status. - Added a service worker (sw.js) to handle push notifications and click events for calendar appointments. - Created users.php for admin to manage team members and invitations, including user creation and deletion functionalities.
20 lines
528 B
PHP
20 lines
528 B
PHP
<?php
|
|
/**
|
|
* Fociz Integraties Doorverwijzer
|
|
* Beheerders worden automatisch doorgeleid naar Systeembeheer (/admin.php).
|
|
* Collega's worden automatisch doorgeleid naar hun Persoonlijk Profiel (/profile.php).
|
|
*/
|
|
|
|
require_once __DIR__ . '/includes/auth.php';
|
|
|
|
$user = require_auth();
|
|
|
|
$queryString = !empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '';
|
|
|
|
if ($user['role'] === 'ADMIN') {
|
|
header('Location: /admin.php' . $queryString);
|
|
} else {
|
|
header('Location: /profile.php' . $queryString);
|
|
}
|
|
exit;
|