geonode icon indicating copy to clipboard operation
geonode copied to clipboard

updatelayers doesn't set Layer owner

Open simod opened this issue 14 years ago • 3 comments

Running updatelayers the Layer owner is not set.

After adding this:

'owner': User.objects.filter(is_superuser=True).order_by('id')[0]

at line 634 in maps/models.py the owner is set correctly. This might help to address the issue.

simod avatar Apr 23 '12 13:04 simod

@ingenieroariel @dwins @iwillig does this seem like a reasonable assumption to just set the owner to the first superuser in the system? If so, @simod can you just make a pull request against lastest master for this fix and we can pull it. Seems like we also dont set the roles when layers are added this way which #239 discusses.

jj0hns0n avatar Jun 18 '12 22:06 jj0hns0n

@simod is this still an issue. I believe it was fixed in dev, but not sure. If so, lets close it.

jj0hns0n avatar Oct 14 '12 15:10 jj0hns0n

@jj0hns0n Yes it's solved. Admin is the default owner of new imported layers. Closing.

simod avatar Oct 14 '12 16:10 simod