Skip to content

Commit

Permalink
Merge pull request #2244 from greenbone/get-configs-writable-predefined
Browse files Browse the repository at this point in the history
Change: include predefined in check for WRITABLE in GET_CONFIGS
  • Loading branch information
a-h-abdelsalam authored Sep 4, 2024
2 parents 1a59461 + 49cb75a commit 611ad30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3316,12 +3316,12 @@ config_in_use (config_t config)
*
* @param[in] config Config.
*
* @return 1.
* @return 1 if writable, else 0.
*/
int
config_writable (config_t config)
{
return 1;
return config_predefined (config) ? 0 : 1;
}

/**
Expand Down

0 comments on commit 611ad30

Please sign in to comment.