1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 05:35:01 +01:00
gitea/models/activities
Zettat123 29637b03b2
Fix commits pushed with deploy keys not shown in dashboard (#24521)
Fix #21324

In the current logic, if the `Actor` user is not an admin user, all
activities from private organizations won't be shown even if the `Actor`
user is a member of the organization.

As mentioned in the issue, when using deploy key to make a commit and
push, the activity's `act_user_id` will be the id of the organization so
the activity won't be shown to non-admin users because the visibility of
the organization is private.

55a5717760/models/activities/action.go (L490-L503)

This PR improves this logic so the activities of private organizations
can be shown.
2023-05-10 04:14:58 +00:00
..
action_list.go
action_test.go
action.go Fix commits pushed with deploy keys not shown in dashboard (#24521) 2023-05-10 04:14:58 +00:00
main_test.go
notification_test.go
notification.go
repo_activity.go
statistic.go
user_heatmap_test.go
user_heatmap.go