Skip to content

Commit

Permalink
User 'administrator' should be created with protected = false to be a…
Browse files Browse the repository at this point in the history
…ble to manage its own preferences and Manage Global Profiles.
  • Loading branch information
vboctor committed Jul 25, 2011
1 parent 0360629 commit 35b5206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/install_helper_functions_api.php
Expand Up @@ -422,7 +422,7 @@ function install_create_admin_if_not_exist( $p_data ) {
VALUES
( " . db_param() . ', ' . db_param() . ', ' . db_param() . ', ' . db_param() . ', ' . db_param() . ', ' . db_param() . ",
" . db_param() . ',' . db_param() . ',' . db_param() . ',' . db_param() . ', ' . db_param() . ')';
db_query_bound( $query, array( $p_username, $p_email, $t_password, db_now(), db_now(), 1, 1, 90, 0, $t_cookie_string, '' ) );
db_query_bound( $query, array( $p_username, $p_email, $t_password, db_now(), db_now(), 1, 0, 90, 0, $t_cookie_string, '' ) );

# Create preferences for the user
$t_user_id = db_insert_id( $t_user_table );
Expand Down

0 comments on commit 35b5206

Please sign in to comment.