mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge branch 'dev' of https://github.com/umami-software/umami into dev
This commit is contained in:
commit
170a269723
@ -22,7 +22,7 @@ export function UserWebsites({ userId }) {
|
||||
<Page loading={isLoading} error={error}>
|
||||
{hasData && (
|
||||
<WebsitesTable
|
||||
data={data}
|
||||
data={data.data}
|
||||
onFilterChange={handleFilterChange}
|
||||
onPageChange={handlePageChange}
|
||||
onPageSizeChange={handlePageSizeChange}
|
||||
|
@ -30,7 +30,15 @@ export default async (
|
||||
await useValidate(schema, req, res);
|
||||
|
||||
const { user } = req.auth;
|
||||
const { id: userId, page = 1, query = '', includeTeams, onlyTeams } = req.query;
|
||||
const {
|
||||
id: userId,
|
||||
page = 1,
|
||||
pageSize,
|
||||
orderBy,
|
||||
query = '',
|
||||
includeTeams,
|
||||
onlyTeams,
|
||||
} = req.query;
|
||||
|
||||
if (req.method === 'GET') {
|
||||
if (!user.isAdmin && user.id !== userId) {
|
||||
@ -39,7 +47,9 @@ export default async (
|
||||
|
||||
const websites = await getWebsitesByUserId(userId, {
|
||||
page,
|
||||
pageSize,
|
||||
query,
|
||||
orderBy,
|
||||
includeTeams,
|
||||
onlyTeams,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user