UFN_LETTERCODE_USERHASSITEACCESS
Validates that the application user has access to the revenue letter based on site permissions.
Return
| Return Type |
|---|
| bit |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @APPUSERID | uniqueidentifier | IN | |
| @LETTERCODEID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_LETTERCODE_USERHASSITEACCESS
(
@APPUSERID uniqueidentifier,
@LETTERCODEID uniqueidentifier
)
returns bit with execute as caller
as
begin
if exists(select SITEID from dbo.UFN_SITEID_MAPFROM_LETTERCODEID(@LETTERCODEID) as LETTERCODESITES where dbo.UFN_SITEALLOWEDFORUSER(@APPUSERID, LETTERCODESITES.SITEID) = 1)
return 1
else
return 0
return 0
end