Skip to content
Snippets Groups Projects
Commit b264aeca authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Changed url

parent 97f03895
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ $app->get('/user/:id/plot', function ($id) use ($app, $db, $user) {
$app->render('user/plot', compact('dbuser', 'form', 'matches'));
});
$app->get('/user', function () use ($app, $db) {
$app->get('/users', function () use ($app, $db) {
require_admin_access();
$users = $db->table('user')->order('id');
$app->render('user/list', compact('users'));
......
......@@ -2,7 +2,7 @@
['matches', _('Matches')],
["user/{$user->getId()}", _('Profile')],
["user/{$user->getId()}/plot", _('Progress graph')],
$user->isInRole('admin') ? ['user', _('Users')],
$user->isInRole('admin') ? ['users', _('Users')],
['logout', _('Logout')],
] : [
['login', _('Login')],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment