Skip to content

Commit 64dfb5a

Browse files
clayzermk1Matthew Fisher
authored andcommitted
fix(controller): set config as the issuing user
When you created new config values, the previous config's owner would become the creator of this config. Removing this line allows the request's user to become the owner.
1 parent 7af9f71 commit 64dfb5a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

api/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ def pre_save(self, config):
289289
previous_config = config.app.config_set.latest()
290290
config.owner = self.request.user
291291
if previous_config:
292-
config.owner = previous_config.owner
293292
for attr in ['cpu', 'memory', 'tags', 'values']:
294293
# Guard against migrations from older apps without fixes to
295294
# JSONField encoding.

0 commit comments

Comments
 (0)