cleanup
This commit is contained in:
parent
32fde286db
commit
217208274e
1 changed files with 1 additions and 4 deletions
|
@ -18,9 +18,6 @@ type List struct {
|
||||||
Rights `xorm:"-" json:"-"`
|
Rights `xorm:"-" json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lists is a multiple of list
|
|
||||||
type Lists []List
|
|
||||||
|
|
||||||
// AfterLoad loads the owner and list items
|
// AfterLoad loads the owner and list items
|
||||||
func (l *List) AfterLoad() {
|
func (l *List) AfterLoad() {
|
||||||
|
|
||||||
|
@ -53,7 +50,7 @@ func GetListsByNamespaceID(nID int64) (lists []*List, err error) {
|
||||||
|
|
||||||
// ReadAll gets all lists a user has access to
|
// ReadAll gets all lists a user has access to
|
||||||
func (l *List) ReadAll(user *User) (interface{}, error) {
|
func (l *List) ReadAll(user *User) (interface{}, error) {
|
||||||
lists := Lists{}
|
lists := []List{}
|
||||||
fullUser, _, err := GetUserByID(user.ID)
|
fullUser, _, err := GetUserByID(user.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return lists, err
|
return lists, err
|
||||||
|
|
Loading…
Reference in a new issue