venom/tpl/admin/base.php
Maurice Grönwoldt f7fa124535 WIP
2020-09-25 21:33:54 +02:00

11 lines
171 B
PHP

<?php
use Venom\Models\User;
use \Venom\Security\Security;
if (!Security::get()->hasRole(User::ADMIN_ROLE)) {
echo 'Login!';
} else {
echo 'Admin Interface!';
}