1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 16:47:30 +00:00
forgejo/models
Zettat123 29637b03b2
Fix commits pushed with deploy keys not shown in dashboard ()
Fix 

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
..
actions Support upload outputs and use needs context on Actions () 2023-04-22 16:12:41 -04:00
activities Fix commits pushed with deploy keys not shown in dashboard () 2023-05-10 04:14:58 +00:00
admin Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
asymkey Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
auth Fix 500 error if there is a name conflict when edit authentication source () 2023-03-31 22:32:18 +08:00
avatars Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
db Improve milestone filter on issues page () 2023-04-30 09:12:49 -04:00
dbfs Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
fixtures fix: release page for empty or non-existing target () 2023-05-10 11:43:55 +08:00
git Use more specific test methods () 2023-04-22 17:56:27 -04:00
issues Refresh the refernce of the closed PR when reopening () 2023-05-08 14:39:32 +08:00
migrations Rewrite queue () 2023-05-08 19:49:59 +08:00
organization Add owner team permission check test () 2023-04-19 19:19:13 -04:00
packages Add RPM registry () 2023-05-05 20:33:37 +00:00
perm Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
project Improve GetBoards and getDefaultBoard () 2023-04-09 22:07:23 +08:00
pull refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo fix: release page for empty or non-existing target () 2023-05-10 11:43:55 +08:00
secret Secrets storage with SecretKey encrypted () 2022-12-20 17:07:13 +08:00
system Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
unit Require at least one unit to be enabled () 2023-05-06 17:39:06 +08:00
unittest Rewrite queue () 2023-05-08 19:49:59 +08:00
user Add Debian package registry () 2023-05-02 12:31:35 -04:00
webhook Fix incorrect webhook time and use relative-time to display it () 2023-05-03 19:53:43 -04:00
error.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_generation.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
main_test.go Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
migrate.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
migrate_test.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
org.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
org_team.go Remove org users who belong to no teams () 2023-04-24 15:52:38 -04:00
org_team_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo.go Split "modules/context.go" to separate files () 2023-05-08 17:36:54 +08:00
repo_collaboration.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo_collaboration_test.go Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
repo_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_transfer.go Fix unclear IsRepositoryExist logic () 2023-04-28 14:14:26 -04:00
repo_transfer_test.go Rename almost all Ctx functions () 2022-12-10 10:46:31 +08:00