diff --git a/Source/Source.php b/Source/Source.php index a377bc1..bdac5a8 100644 --- a/Source/Source.php +++ b/Source/Source.php @@ -38,8 +38,10 @@ return array( 'show_repo_link' => ON, 'show_search_link' => OFF, - 'manage_threshold' => ADMINISTRATOR, + 'view_threshold' => VIEWER, + 'update_threshold' => UPDATER, + 'manage_threshold' => ADMINISTRATOR, 'enable_porting' => OFF, diff --git a/Source/pages/manage_config.php b/Source/pages/manage_config.php index 6e9f33d..1116de8 100644 --- a/Source/pages/manage_config.php +++ b/Source/pages/manage_config.php @@ -16,6 +16,7 @@ access_ensure_global_level( plugin_config_get( 'manage_threshold' ) ); $f_view_threshold = gpc_get_int( 'view_threshold' ); +$f_update_threshold = gpc_get_int( 'update_threshold' ); $f_manage_threshold = gpc_get_int( 'manage_threshold' ); $f_show_repo_link = gpc_get_bool( 'show_repo_link', OFF ); @@ -60,6 +61,7 @@ } maybe_set_option( 'view_threshold', $f_view_threshold ); +maybe_set_option( 'update_threshold', $f_update_threshold ); maybe_set_option( 'manage_threshold', $f_manage_threshold ); maybe_set_option( 'show_repo_link', $f_show_repo_link ); diff --git a/Source/pages/manage_config_page.php b/Source/pages/manage_config_page.php index 4051ad6..078548d 100644 --- a/Source/pages/manage_config_page.php +++ b/Source/pages/manage_config_page.php @@ -42,6 +42,11 @@