1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-21 23:24:29 +00:00
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
..
2018-03-06 09:22:16 +08:00
2019-02-02 21:56:15 +00:00
2017-05-26 09:38:18 +08:00
2017-05-04 13:54:56 +08:00
2018-10-27 22:45:24 +08:00
2018-05-09 19:29:04 +03:00
2014-04-13 03:14:43 -04:00
2018-10-25 18:55:16 +08:00
2019-01-13 14:06:22 -05:00
2019-02-07 12:00:52 +00:00
2018-10-26 12:37:57 +03:00
2018-05-19 17:12:37 +03:00
2018-05-19 17:12:37 +03:00
2018-10-23 10:57:42 +08:00
2018-10-20 18:19:21 -04:00