Fix permission matching on routes; closes #4181
This commit is contained in:
parent
bd278b2688
commit
b570769a34
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ export default ({ permission, children, ...props }: Props) => (
|
||||||
children
|
children
|
||||||
) : (
|
) : (
|
||||||
<Can
|
<Can
|
||||||
|
matchAny
|
||||||
action={permission}
|
action={permission}
|
||||||
renderOnError={
|
renderOnError={
|
||||||
<ServerError title={'Access Denied'} message={'You do not have permission to access this page.'} />
|
<ServerError title={'Access Denied'} message={'You do not have permission to access this page.'} />
|
||||||
|
|
Loading…
Reference in a new issue