[admin] re-enable user list
This commit is contained in:
parent
18d3dd6cee
commit
b36ded1256
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue