Skip to content

Commit 463a1af

Browse files
author
Ildar Nasyrov
committed
[REF] saas_server: disable saas_oauth_provider in template and therefore all instances by default
1 parent 03d8b65 commit 463a1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saas_server/models/saas_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _prepare_database(self, client_env, owner_user=None, is_template_db=False, a
140140
saas_oauth_provider = self.env.ref('saas_server.saas_oauth_provider')
141141

142142
oauth_provider_data = {'enabled': False, 'client_id': client_id}
143-
for attr in ['name', 'auth_endpoint', 'scope', 'validation_endpoint', 'data_endpoint', 'css_class', 'body', 'enabled', 'local_host', 'local_port']:
143+
for attr in ['name', 'auth_endpoint', 'scope', 'validation_endpoint', 'data_endpoint', 'css_class', 'body', 'local_host', 'local_port']:
144144
oauth_provider_data[attr] = getattr(saas_oauth_provider, attr)
145145
oauth_provider = client_env.ref('saas_client.saas_oauth_provider')
146146
oauth_provider.write(oauth_provider_data)

0 commit comments

Comments
 (0)