]> source.dussan.org Git - gitea.git/commit
Factor out function to get the current user
authorPaolo Borelli <pborelli@gnome.org>
Fri, 31 Jul 2015 06:50:11 +0000 (08:50 +0200)
committerPaolo Borelli <pborelli@gnome.org>
Sat, 15 Aug 2015 08:05:12 +0000 (10:05 +0200)
commit0d38794c7f9b25b2e602cb0d2f686e74cd1ab1cb
tree5ebac231c18bbce2ee1ba5f8e244b26cf198b46d
parentb35d7eee31e8a33e314d54514854efaeee9d46b1
Factor out function to get the current user

The same logic was duplicated in three places. Factor it
out so that we can add further fallbacks in a single place.
modules/setting/setting.go
modules/user/user.go [new file with mode: 0644]
routers/install.go