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:
parent
bd278b2688
commit
b570769a34
@ -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.'} />
|
||||
|
Loading…
Reference in New Issue
Block a user