Skip to content

Commit c947a27

Browse files
committed
Fixed RLS predicate in dublocated code
Added access to WebApi in the duplicated RLS predicate
1 parent 2a51886 commit c947a27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/databases/wide-world-importers/wwi-ssdt/wwi-ssdt/Application/Stored Procedures/Configuration_ApplyRowLevelSecurity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RETURN (SELECT 1 AS AccessResult
2828
INNER JOIN [Application].StateProvinces AS sp
2929
ON c.StateProvinceID = sp.StateProvinceID
3030
WHERE c.CityID = @CityID) + N'' Sales'') <> 0
31-
OR (ORIGINAL_LOGIN() = N''Website''
31+
OR (ORIGINAL_LOGIN() = N''Website'' OR ORIGINAL_LOGIN() = N''WebApi''
3232
AND EXISTS (SELECT 1
3333
FROM [Application].Cities AS c
3434
INNER JOIN [Application].StateProvinces AS sp

0 commit comments

Comments
 (0)