Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Sujith <[email protected]>
  • Loading branch information
sujithvn committed Feb 3, 2023
1 parent 049eb5d commit 06c601e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async function hasPermission(context, resource, action, authConte
// Parse the provided data to create the permission name to check against (<organization>:<system>:<entity>/<action>)
const permissionName = `${resource.split(":").splice(0, 3).join(":")}/${action}`;
const resourceElementsArray = resource.split(":");
const resourceSpecificPermissionName = (Arrar.isArray(resourceElementsArray) && resourceElementsArray.length === 4)
const resourceSpecificPermissionName = (Array.isArray(resourceElementsArray) && resourceElementsArray.length === 4)
? `${resourceElementsArray.join(":")}/${action}` : "";

// make sure shopId is a non-empty string (if provided)
Expand Down

0 comments on commit 06c601e

Please sign in to comment.