1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00

Hide the "Details" link of commit status when the user cannot access actions (testifylint)

This commit is contained in:
Earl Warren 2024-08-04 08:54:32 +02:00
parent 0dbc623028
commit c8e5e39865
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -244,11 +244,11 @@ func TestFindRepoRecentCommitStatusContexts(t *testing.T) {
}
func TestCommitStatusesHideActionsURL(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
require.NoError(t, unittest.PrepareTestDatabase())
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 4})
run := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: 791, RepoID: repo.ID})
assert.NoError(t, run.LoadAttributes(db.DefaultContext))
require.NoError(t, run.LoadAttributes(db.DefaultContext))
statuses := []*git_model.CommitStatus{
{