mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 05:14:00 +01:00
Hide the "Details" link of commit status when the user cannot access actions (testifylint)
This commit is contained in:
parent
0dbc623028
commit
c8e5e39865
1 changed files with 2 additions and 2 deletions
|
@ -244,11 +244,11 @@ func TestFindRepoRecentCommitStatusContexts(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCommitStatusesHideActionsURL(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})
|
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 4})
|
||||||
run := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: 791, RepoID: repo.ID})
|
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{
|
statuses := []*git_model.CommitStatus{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue