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 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.'} />