agriget/classes/handler/protected.php

8 lines
136 B
PHP
Raw Normal View History

2019-03-22 22:17:29 +08:00
<?php
class Handler_Protected extends Handler {
function before($method) {
return parent::before($method) && $_SESSION['uid'];
}
}