Added many stuff

Too lazy to write what
This commit is contained in:
Furentes
2019-05-16 13:25:21 +02:00
parent eaa735da68
commit 62e4c56658
10 changed files with 400 additions and 87 deletions

View File

@ -13,6 +13,13 @@ $posts = $auth->getAllPosts();
</head>
<body>
<?php
if ($auth->hasRole([ \Bloggr\Roles::ADMIN ])) {
?>
<p>
<a href="/users.php">Users</a>
</p>
<?php
}
if ($auth->hasRole([ \Bloggr\Roles::ADMIN, \Bloggr\Roles::AUTHOR ])) {
?>
<p>
@ -31,6 +38,9 @@ $posts = $auth->getAllPosts();
<?php
} else {
?>
<p>
<a href="/settings.php">Einstellungen</a>
</p>
<p>
<a href="/logout.php">Logout</a>
</p>