summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2020-12-22 02:53:37 +0000
committerGitHub <noreply@github.com>2020-12-22 03:53:37 +0100
commitf6bec8529697bdb89ebcd0901ba093f06aa9ac46 (patch)
treed742367805a8296411211d5157c505f252f24dbf /models/fixtures
parent2c9dd71140474b1f83f068bece40b25e94240ab4 (diff)
downloadgitea-f6bec8529697bdb89ebcd0901ba093f06aa9ac46.tar.gz
gitea-f6bec8529697bdb89ebcd0901ba093f06aa9ac46.zip
rework heatmap permissions (#14080)
* now uses the same permission model as for the activity feed: only include activities in repos, that the doer has access to. this might be somewhat slower. * also improves handling of user.KeepActivityPrivate (still shows the heatmap to self & admins) * extend tests * adjust integration test to new behaviour * add access to actions for admins * extend heatmap unit tests
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/action.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml
index eb92aeedbe..14cfd90423 100644
--- a/models/fixtures/action.yml
+++ b/models/fixtures/action.yml
@@ -23,3 +23,12 @@
act_user_id: 11
repo_id: 9
is_private: false
+
+-
+ id: 4
+ user_id: 16
+ op_type: 12 # close issue
+ act_user_id: 16
+ repo_id: 22
+ is_private: true
+ created_unix: 1603267920