Skip to content

Commit

Permalink
fix(controller): set config as the issuing user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clayzermk1 authored and Matthew Fisher committed Dec 10, 2014
1 parent f21159f commit 6a2be87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion controller/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ def pre_save(self, config):
previous_config = config.app.config_set.latest()
config.owner = self.request.user
if previous_config:
config.owner = previous_config.owner
for attr in ['cpu', 'memory', 'tags', 'values']:
# Guard against migrations from older apps without fixes to
# JSONField encoding.
Expand Down

0 comments on commit 6a2be87

Please sign in to comment.