mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
Merge branch 'development' of https://gitlab.com/mbugroup/lti-web-client into dev/randy
This commit is contained in:
@@ -67,7 +67,9 @@ const MainDrawer = ({
|
|||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const { permissionCheck } = useAuth();
|
const { permissionCheck } = useAuth();
|
||||||
|
|
||||||
const isPermitted = ROUTE_PERMISSIONS[pathname]?.some((permission) =>
|
const formattedPathname = pathname.endsWith('/') ? pathname : `${pathname}/`;
|
||||||
|
|
||||||
|
const isPermitted = ROUTE_PERMISSIONS[formattedPathname]?.some((permission) =>
|
||||||
permissionCheck(permission)
|
permissionCheck(permission)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export class MarketingReportApiService extends BaseApiService<
|
|||||||
unknown,
|
unknown,
|
||||||
unknown
|
unknown
|
||||||
> {
|
> {
|
||||||
constructor(basePath: string = '/reports/marketings/daily-marketing') {
|
constructor(basePath: string = '/reports/marketing') {
|
||||||
super(basePath);
|
super(basePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,5 +71,5 @@ export class MarketingReportApiService extends BaseApiService<
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const MarketingReportApi = new MarketingReportApiService(
|
export const MarketingReportApi = new MarketingReportApiService(
|
||||||
'/reports/marketings/daily-marketing'
|
'/reports/marketing'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user