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