1
0

Fix getting lists for shared, favorite and saved lists namespace

This commit is contained in:
kolaente
2021-03-18 21:39:38 +01:00
parent fc4eb8ceb9
commit 6fa95e6492
3 changed files with 44 additions and 15 deletions

View File

@ -72,7 +72,10 @@ func (n *Namespace) checkRight(s *xorm.Session, a web.Auth, rights ...Right) (bo
return false, 0, err
}
if a.GetID() == nn.OwnerID {
if a.GetID() == nn.OwnerID ||
nn.ID == SharedListsPseudoNamespace.ID ||
nn.ID == FavoritesPseudoNamespace.ID ||
nn.ID == SavedFiltersPseudoNamespace.ID {
return true, int(RightAdmin), nil
}