@furystack/http-api
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -30,3 +30,3 @@ "use strict"; | ||
for (const role of roles) { | ||
if (!currentUser.Roles.some((c) => c.Id === role.Id)) { | ||
if (!currentUser.Roles.some((c) => c.Name === role.Name)) { | ||
return false; | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "@furystack/http-api", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "HTTP Api FuryStack package", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -17,3 +17,3 @@ import { IContext, IRole, IUser, visitorUser } from "@furystack/core"; | ||
for (const role of roles) { | ||
if (!currentUser.Roles.some((c) => c.Id === role.Id)) { | ||
if (!currentUser.Roles.some((c) => c.Name === role.Name)) { | ||
return false; | ||
@@ -20,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120990