2021-02-14 12:50:46 +00:00
|
|
|
<?php
|
|
|
|
class Handler_Administrative extends Handler_Protected {
|
|
|
|
function before($method) {
|
|
|
|
if (parent::before($method)) {
|
2021-11-10 17:44:51 +00:00
|
|
|
if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
|
2021-02-14 12:50:46 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|