Show More
@@ -167,13 +167,13 b' class RhodeCodeAuthPluginBase(object):' | |||
|
167 | 167 | """ |
|
168 | 168 | return AuthnPluginSettingsSchemaBase() |
|
169 | 169 | |
|
170 | def get_setting_by_name(self, name): | |
|
170 | def get_setting_by_name(self, name, default=None): | |
|
171 | 171 | """ |
|
172 | 172 | Returns a plugin setting by name. |
|
173 | 173 | """ |
|
174 | 174 | full_name = self._get_setting_full_name(name) |
|
175 | 175 | db_setting = SettingsModel().get_setting_by_name(full_name) |
|
176 |
return db_setting.app_settings_value if db_setting else |
|
|
176 | return db_setting.app_settings_value if db_setting else default | |
|
177 | 177 | |
|
178 | 178 | def create_or_update_setting(self, name, value): |
|
179 | 179 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now