venom/tpl/admin/base.php

11 lines
171 B
PHP
Raw Normal View History

2020-09-25 21:33:54 +02:00
<?php
use Venom\Models\User;
use \Venom\Security\Security;
if (!Security::get()->hasRole(User::ADMIN_ROLE)) {
echo 'Login!';
} else {
echo 'Admin Interface!';
}