[admin] re-enable user list

This commit is contained in:
Avris 2021-08-05 08:25:38 +02:00
parent 18d3dd6cee
commit b36ded1256
2 changed files with 7 additions and 3 deletions

View File

@ -18,6 +18,12 @@
</template>
<script>
import locales from '../src/locales';
const allLocales = ['*'];
for (let [code,] of locales) {
allLocales.push(code);
}
export default {
props: {
user: { required: true },
@ -29,7 +35,7 @@
const [ locale, area ] = r.split('-');
return { locale, area };
}),
allLocales: ['*', ...Object.keys(this.locales)],
allLocales,
allAreas: [
'*',
'panel',

View File

@ -68,8 +68,6 @@ router.get('/admin/users', handleErrorAsync(async (req, res) => {
return res.status(401).json({error: 'Unauthorised'});
}
return res.json({});
const users = await req.db.all(SQL`
SELECT u.id, u.username, u.email, u.roles, u.avatarSource, p.locale
FROM users u