Skip to content

Commit b570769

Browse files
committed
Fix permission matching on routes; closes pterodactyl#4181
1 parent bd278b2 commit b570769

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/scripts/components/elements/PermissionRoute.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default ({ permission, children, ...props }: Props) => (
1515
children
1616
) : (
1717
<Can
18+
matchAny
1819
action={permission}
1920
renderOnError={
2021
<ServerError title={'Access Denied'} message={'You do not have permission to access this page.'} />

0 commit comments

Comments
 (0)