Commit b264aeca authored by Taddeüs Kroes's avatar Taddeüs Kroes

Changed url

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