11 lines
171 B
PHP
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!';
|
|
}
|