Handle playlist's permissions on server

This commit is contained in:
Deluan 2020-06-05 10:59:23 -04:00
parent 4906b816af
commit c6f23139bc
3 changed files with 41 additions and 2 deletions

View file

@ -86,7 +86,7 @@ var _ = Describe("Initialize test DB", func() {
BeforeSuite(func() {
o := orm.NewOrm()
ctx := log.NewContext(context.TODO())
ctx = request.WithUser(ctx, model.User{ID: "userid"})
ctx = request.WithUser(ctx, model.User{ID: "userid", UserName: "userid"})
mr := NewMediaFileRepository(ctx, o)
for i := range testSongs {
s := testSongs[i]