mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fixed share page. Updated data tables to be responsive.
This commit is contained in:
parent
92d16d8937
commit
c18daf4845
17 changed files with 69 additions and 54 deletions
|
|
@ -15,6 +15,7 @@ import {
|
|||
} from 'next-basics';
|
||||
import { getUserByUsername } from 'queries';
|
||||
import * as yup from 'yup';
|
||||
import { ROLES } from 'lib/constants';
|
||||
|
||||
const log = debug('umami:auth');
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ export default async (
|
|||
|
||||
return ok(res, {
|
||||
token,
|
||||
user: { id, username, role, createdAt },
|
||||
user: { id, username, role, createdAt, isAdmin: role === ROLES.admin },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue