add Handler_Administrative
parent
33ea46c2bc
commit
0b7377238a
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
class Handler_Administrative extends Handler_Protected {
|
||||||
|
function before($method) {
|
||||||
|
if (parent::before($method)) {
|
||||||
|
if (($_SESSION["access_level"] ?? 0) >= 10) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue