Skip to content

Conversation

@frankiejol
Copy link
Member

When calling rvd_back with create user option, disable auto-creation

issue #2267

Copilot AI review requested due to automatic review settings December 15, 2025 15:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

my $rvd_back = Ravada->new(%CONFIG);
$rvd_back->_install();
my %install_args;
$install_args{add_user_admin} = 0 if $ADD_USER;
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition here should also include other user-adding options for consistency. Currently, only $ADD_USER triggers the suppression of admin user creation, but there are other user-adding options ($ADD_USER_LDAP, $ADD_USER_FILE, $ADD_USER_GROUP) that arguably should also suppress automatic admin user creation. Consider whether these other user-adding operations should also set add_user_admin to 0.

Suggested change
$install_args{add_user_admin} = 0 if $ADD_USER;
$install_args{add_user_admin} = 0 if $ADD_USER || $ADD_USER_LDAP || $ADD_USER_FILE || $ADD_USER_GROUP;

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants