fix: redirect the 'Request' button to the right page (#1711)

This PR change the link of the 'Request' button of the UserDropdown for user with no MANAGE_REQUEST
or REQUEST_VIEW permissions. These users can't see the /users/:ID/requests page, so there were
redirected to the home page. This PR also removes the /profile/request page which is the same as the
/request or the /users/:ID/requests page.

fix #1588
This commit is contained in:
Gauthier
2025-06-18 00:00:48 +02:00
committed by GitHub
parent 0357d17205
commit 9cb7e1495a
3 changed files with 22 additions and 17 deletions

View File

@@ -1,8 +0,0 @@
import RequestList from '@app/components/RequestList';
import type { NextPage } from 'next';
const UserRequestsPage: NextPage = () => {
return <RequestList />;
};
export default UserRequestsPage;