Fix for ticket #438 (SC1003), agents could see the create party option/button. They should not have been able to view this screen. Restricted the create party menu option and create party button so that only webmipadmin can see them.
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4191 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -13,8 +13,8 @@ prompt APPLICATION 155 - webmip
|
|||||||
-- Application Export:
|
-- Application Export:
|
||||||
-- Application: 155
|
-- Application: 155
|
||||||
-- Name: webmip
|
-- Name: webmip
|
||||||
-- Date and Time: 16:00 Tuesday April 1, 2008
|
-- Date and Time: 16:45 Tuesday April 1, 2008
|
||||||
-- Exported By: HARDYA
|
-- Exported By: PRIESTJ
|
||||||
-- Flashback: 0
|
-- Flashback: 0
|
||||||
-- Export Type: Application Export
|
-- Export Type: Application Export
|
||||||
-- Version: 3.1.0.00.32
|
-- Version: 3.1.0.00.32
|
||||||
@@ -145,7 +145,7 @@ wwv_flow_api.create_flow(
|
|||||||
p_default_region_template=> 28038130488354430 + wwv_flow_api.g_id_offset,
|
p_default_region_template=> 28038130488354430 + wwv_flow_api.g_id_offset,
|
||||||
p_error_template => 42209241448421762 + wwv_flow_api.g_id_offset,
|
p_error_template => 42209241448421762 + wwv_flow_api.g_id_offset,
|
||||||
p_page_protection_enabled_y_n=> 'N',
|
p_page_protection_enabled_y_n=> 'N',
|
||||||
p_checksum_salt_last_reset => '20080401160026',
|
p_checksum_salt_last_reset => '20080401164530',
|
||||||
p_home_link => 'f?p=&APP_ID.:101',
|
p_home_link => 'f?p=&APP_ID.:101',
|
||||||
p_flow_language => 'en-gb',
|
p_flow_language => 'en-gb',
|
||||||
p_flow_language_derived_from=> 'FLOW_PRIMARY_LANGUAGE',
|
p_flow_language_derived_from=> 'FLOW_PRIMARY_LANGUAGE',
|
||||||
@@ -193,8 +193,8 @@ wwv_flow_api.create_flow(
|
|||||||
p_substitution_value_03 => 'http://www.nationalgrid.com/corporate/legal/privacy.htm',
|
p_substitution_value_03 => 'http://www.nationalgrid.com/corporate/legal/privacy.htm',
|
||||||
p_substitution_string_04 => 'HELP_URL',
|
p_substitution_string_04 => 'HELP_URL',
|
||||||
p_substitution_value_04 => 'http://www.nationalgrid.com/corporate/legal/help.htm',
|
p_substitution_value_04 => 'http://www.nationalgrid.com/corporate/legal/help.htm',
|
||||||
p_last_updated_by => 'HARDYA',
|
p_last_updated_by => 'PRIESTJ',
|
||||||
p_last_upd_yyyymmddhh24miss=> '20080401160026',
|
p_last_upd_yyyymmddhh24miss=> '20080401164530',
|
||||||
p_required_roles=> wwv_flow_utilities.string_to_table2(''));
|
p_required_roles=> wwv_flow_utilities.string_to_table2(''));
|
||||||
|
|
||||||
|
|
||||||
@@ -2396,6 +2396,19 @@ wwv_flow_api.create_app_comments (
|
|||||||
end;
|
end;
|
||||||
/
|
/
|
||||||
begin
|
begin
|
||||||
|
wwv_flow_api.create_app_comments (
|
||||||
|
p_id=>8065525744630796 + wwv_flow_api.g_id_offset,
|
||||||
|
p_flow_id=>wwv_flow.g_flow_id,
|
||||||
|
p_pages=>'65',
|
||||||
|
p_app_comment=>'Switched the conditional statement on the two buttons so that the create user is only available to the webmipadmin, all users can access edit user',
|
||||||
|
p_updated_on=>'2008.04.01.16:44:32',
|
||||||
|
p_updated_by=>'PRIESTJ',
|
||||||
|
p_created_on=>'2008.04.01.16:44:32',
|
||||||
|
p_created_by=>'PRIESTJ',
|
||||||
|
p_app_version=>'');
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
begin
|
||||||
wwv_flow_api.create_app_comments (
|
wwv_flow_api.create_app_comments (
|
||||||
p_id=>39796811587940845 + wwv_flow_api.g_id_offset,
|
p_id=>39796811587940845 + wwv_flow_api.g_id_offset,
|
||||||
p_flow_id=>wwv_flow.g_flow_id,
|
p_flow_id=>wwv_flow.g_flow_id,
|
||||||
@@ -30721,8 +30734,8 @@ wwv_flow_api.create_page(
|
|||||||
p_html_page_header => '',
|
p_html_page_header => '',
|
||||||
p_step_template => '',
|
p_step_template => '',
|
||||||
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
||||||
p_last_updated_by => 'MULLENM',
|
p_last_updated_by => 'PRIESTJ',
|
||||||
p_last_upd_yyyymmddhh24miss => '20080305133607',
|
p_last_upd_yyyymmddhh24miss => '20080401164119',
|
||||||
p_page_is_public_y_n=> 'N',
|
p_page_is_public_y_n=> 'N',
|
||||||
p_page_comment => '');
|
p_page_comment => '');
|
||||||
|
|
||||||
@@ -30776,6 +30789,11 @@ wwv_flow_api.create_page_button(
|
|||||||
p_button_position=> 'BOTTOM',
|
p_button_position=> 'BOTTOM',
|
||||||
p_button_alignment=> 'RIGHT',
|
p_button_alignment=> 'RIGHT',
|
||||||
p_button_redirect_url=> 'f?p=&APP_ID.:61:&SESSION.::&DEBUG.:61,62,63,64::',
|
p_button_redirect_url=> 'f?p=&APP_ID.:61:&SESSION.::&DEBUG.:61,62,63,64::',
|
||||||
|
p_button_condition=> 'if mip_parties.get_user_role(:APP_USER) = ''MIPADMIN'' then'||chr(10)||
|
||||||
|
' return true;'||chr(10)||
|
||||||
|
'else return false;'||chr(10)||
|
||||||
|
'end if;',
|
||||||
|
p_button_condition_type=> 'FUNCTION_BODY',
|
||||||
p_required_patch => null + wwv_flow_api.g_id_offset);
|
p_required_patch => null + wwv_flow_api.g_id_offset);
|
||||||
|
|
||||||
wwv_flow_api.create_page_button(
|
wwv_flow_api.create_page_button(
|
||||||
@@ -30790,11 +30808,6 @@ wwv_flow_api.create_page_button(
|
|||||||
p_button_position=> 'BOTTOM',
|
p_button_position=> 'BOTTOM',
|
||||||
p_button_alignment=> 'RIGHT',
|
p_button_alignment=> 'RIGHT',
|
||||||
p_button_redirect_url=> 'f?p=&APP_ID.:65:&SESSION.::&DEBUG.:::',
|
p_button_redirect_url=> 'f?p=&APP_ID.:65:&SESSION.::&DEBUG.:::',
|
||||||
p_button_condition=> 'if mip_parties.get_user_role(:APP_USER) = ''MIPADMIN'' then'||chr(10)||
|
|
||||||
' return true;'||chr(10)||
|
|
||||||
'else return false;'||chr(10)||
|
|
||||||
'end if;',
|
|
||||||
p_button_condition_type=> 'FUNCTION_BODY',
|
|
||||||
p_required_patch => null + wwv_flow_api.g_id_offset);
|
p_required_patch => null + wwv_flow_api.g_id_offset);
|
||||||
|
|
||||||
|
|
||||||
@@ -42212,7 +42225,7 @@ wwv_flow_api.create_page(
|
|||||||
p_step_template => '',
|
p_step_template => '',
|
||||||
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
||||||
p_last_updated_by => 'HARDYA',
|
p_last_updated_by => 'HARDYA',
|
||||||
p_last_upd_yyyymmddhh24miss => '20080331105759',
|
p_last_upd_yyyymmddhh24miss => '20080401160708',
|
||||||
p_page_is_public_y_n=> 'N',
|
p_page_is_public_y_n=> 'N',
|
||||||
p_page_comment => '');
|
p_page_comment => '');
|
||||||
|
|
||||||
@@ -47098,6 +47111,8 @@ wwv_flow_api.create_list_item (
|
|||||||
p_list_item_display_sequence=>261,
|
p_list_item_display_sequence=>261,
|
||||||
p_list_item_link_text=> 'Create Party',
|
p_list_item_link_text=> 'Create Party',
|
||||||
p_list_item_link_target=> 'f?p=&APP_ID.:61:&SESSION.::&DEBUG.:61, 62, 63, 64:::',
|
p_list_item_link_target=> 'f?p=&APP_ID.:61:&SESSION.::&DEBUG.:61, 62, 63, 64:::',
|
||||||
|
p_list_item_disp_cond_type=> 'PLSQL_EXPRESSION',
|
||||||
|
p_list_item_disp_condition=> '#OWNER#.mip_security.component_authorization(v(''APP_USER''),''sysadmin'')',
|
||||||
p_parent_list_item_id=> 19236704960763690 + wwv_flow_api.g_id_offset,
|
p_parent_list_item_id=> 19236704960763690 + wwv_flow_api.g_id_offset,
|
||||||
p_list_countclicks_y_n=> 'N',
|
p_list_countclicks_y_n=> 'N',
|
||||||
p_list_text_01=> '',
|
p_list_text_01=> '',
|
||||||
|
|||||||
Reference in New Issue
Block a user