1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Fix permission matching on routes; closes #4181

This commit is contained in:
DaneEveritt 2022-06-27 20:41:49 -04:00
parent bd278b2688
commit b570769a34
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -15,6 +15,7 @@ export default ({ permission, children, ...props }: Props) => (
children
) : (
<Can
matchAny
action={permission}
renderOnError={
<ServerError title={'Access Denied'} message={'You do not have permission to access this page.'} />