added Jamie's block back in after merge ignored it. honest.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2905 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
mullenm
2007-11-29 11:31:55 +00:00
parent 030c682c3a
commit ab9471a85f

View File

@@ -311,6 +311,8 @@ CREATE OR REPLACE PACKAGE BODY mip_security AS
RETURN TRUE;
END;
END IF;
-- added block around this to catch no data.
BEGIN
SELECT access_allowed
INTO l_access_allowed
FROM (SELECT auth.component_name
@@ -338,12 +340,17 @@ CREATE OR REPLACE PACKAGE BODY mip_security AS
AND auth.component_type = p_component_type
ORDER BY parl.rt_code)
WHERE rownum < 2;
IF nvl(l_access_allowed
,'NO') = 'YES' THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
EXCEPTION
WHEN no_data_found THEN
RETURN FALSE;
END;
END authorization;
/** Checks for authorization to access the given page