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