mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Fixed RLS predicate in dublocated code
Added access to WebApi in the duplicated RLS predicate
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ RETURN (SELECT 1 AS AccessResult
|
||||
INNER JOIN [Application].StateProvinces AS sp
|
||||
ON c.StateProvinceID = sp.StateProvinceID
|
||||
WHERE c.CityID = @CityID) + N'' Sales'') <> 0
|
||||
OR (ORIGINAL_LOGIN() = N''Website''
|
||||
OR (ORIGINAL_LOGIN() = N''Website'' OR ORIGINAL_LOGIN() = N''WebApi''
|
||||
AND EXISTS (SELECT 1
|
||||
FROM [Application].Cities AS c
|
||||
INNER JOIN [Application].StateProvinces AS sp
|
||||
|
||||
Reference in New Issue
Block a user