Skip to content

Commit 2e9d327

Browse files
committed
Fix eslint errors
1 parent ab4c4e7 commit 2e9d327

File tree

1 file changed

+3
-3
lines changed
  • resources/scripts/components/elements

1 file changed

+3
-3
lines changed

resources/scripts/components/elements/Can.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const Can = ({ action, renderOnError, children }: Props) => {
2121
// Allows checking for any permission matching a name, for example files.*
2222
// will return if the user has any permission under the file.XYZ namespace.
2323
(
24-
permission.endsWith('.*')
25-
&& permission !== 'websocket.*'
26-
&& userPermissions.filter(p => p.startsWith(permission.split('.')[0])).length > 0
24+
permission.endsWith('.*') &&
25+
permission !== 'websocket.*' &&
26+
userPermissions.filter(p => p.startsWith(permission.split('.')[0])).length > 0
2727
)
2828
// Otherwise just check if the entire permission exists in the array or not.
2929
|| userPermissions.indexOf(permission) >= 0);

0 commit comments

Comments
 (0)