0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 04:24:08 +01:00
gitea/routers/user
Lanre Adelowo 094263db4d Show email if the authenticated user owns the profile page being requested for (#4981)
* Show email if the authenticated user owns the profile page being
requested for.

Also removed `setting.UI.ShowUserEmail` as it's documentation says it
only controls the email setting on the explore page

* fix current user check... This prevents a panic as a user must be signed in before ctx.User is called

* fix panic in tests

* try to fix tests

* Update year

* Test CI fail

* Revert change

* User 3 is not allowed to authorize

* Set user2 email to be private

* Change to user4 in explore page as user2 now has private email option set
2019-02-19 09:11:50 -05:00
..
setting fix bug when deleting a linked account will removed all (#5989) 2019-02-07 01:51:23 -05:00
auth_openid.go Do not display the raw OpenID error in the UI (#5705) 2019-01-12 14:24:47 -05:00
auth.go Fix prohibit login check on authorization (#6106) 2019-02-19 09:19:28 +02:00
home_test.go
home.go Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
main_test.go
notification.go
profile.go Show email if the authenticated user owns the profile page being requested for (#4981) 2019-02-19 09:11:50 -05:00