Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit f080ba2

Browse files
committed
Change logic to support Smart Assemblies
1 parent 8dcc5be commit f080ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/LicenseUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public static IDisposable RequestAccess(object accessToken, LicenseFeature srcFe
387387
if (srcFeature != LicenseFeature.Client || requestedAccess != LicenseFeature.Text || accessToken == null)
388388
throw new LicenseException(ErrorMessages.UnauthorizedAccessRequest);
389389

390-
if (accessType.Name.StartsWith("#")) //Smart Assembly
390+
if (accessType.Name == "AccessToken" && accessType.GetAssembly().ManifestModule.Name.StartsWith("<")) //Smart Assembly
391391
return new AccessToken(requestedAccess);
392392

393393
if (!_approved.__tokens.Contains(accessType.FullName))

0 commit comments

Comments
 (0)