Refactor ListTask to Task #92

Merged
konrad merged 7 commits from refactor/list-task into master 2019-08-14 20:19:06 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 392b7d6311 - Show all commits

View File

@ -130,6 +130,9 @@ func (l *List) checkRight(a web.Auth, rights ...Right) (bool, error) {
))
}
// If the user is the owner of a namespace, it has any right, all the time
conds = append(conds, builder.Eq{"n.owner_id": a.GetID()})
exists, err := x.Select("l.*").
Table("list").
Alias("l").

View File

@ -84,7 +84,7 @@ func TestTeamList(t *testing.T) {
tl5 := tl
tl5.ListID = 2
_, err = tl5.ReadAll("", &u, 1)
assert.NoError(t, err)
assert.NoError(t, err) //
// Test read all for a list where the user not has access
tl6 := tl