This commit is contained in:
Maurice Grönwoldt 2020-09-25 21:33:54 +02:00
commit f7fa124535
21 changed files with 388 additions and 58 deletions

10
tpl/admin/base.php Normal file
View file

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